Skip to content

Commit

Permalink
Merge pull request #227 from LUI-UI/226-should-all-components-have-a-…
Browse files Browse the repository at this point in the history
…classname-with-component-name

226 should all components have a classname with component name
  • Loading branch information
rhmkstk authored Oct 16, 2023
2 parents f9bc602 + 48fcdec commit e800077
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 285 deletions.
2 changes: 1 addition & 1 deletion src/components/Checkbox/LuiCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const iconSize = computed(() =>
</script>

<template>
<div class="inline-block leading-3">
<div class="lui-checkbox inline-block leading-3">
<div class="relative inline-flex">
<input
type="checkbox"
Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuDropdown/LuiMenuDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function ArrowDownIcon() {
</script>

<template>
<div ref="luiDropdownWrapper" :class="dropdownWrapperClasses">
<div ref="luiDropdownWrapper" class="lui-menu-dropdown" :class="dropdownWrapperClasses">
<div ref="luiDropdownTrigger" class="trigger-wrapper cursor-pointer">
<slot
:id="buttonId"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/LuiModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const computedModalClasses = computed(() => {
<template>
<Teleport :to="`#${teleportId}`">
<UseFocusTrap v-if="show" :options="{ immediate: true }">
<div class="fixed inset-0 z-50 overflow-hidden">
<div class="lui-modal fixed inset-0 z-50 overflow-hidden">
<div class="dialog-wrapper" :class="computedDialogWrapperClasses">
<div
:id="modalId"
Expand Down
4 changes: 1 addition & 3 deletions src/components/MultiSelect/LuiMultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ function closeOptions() {
optionsActive.value = false
}
function updateSelectedOptions(option: ModelValue) {
console.log('option', option)
if (option === undefined)
return
const optionText = typeof option !== 'string' ? option.text : option
Expand Down Expand Up @@ -627,9 +626,8 @@ function ArrowIcon() {
</script>

<template>
isValueUsing: {{ isValueUsing }}
<div
class="relative"
class="relative lui-multiselect"
:class="wrapperClasses"
>
<div
Expand Down
1 change: 1 addition & 0 deletions src/components/Option/LuiOption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ defineExpose({
role="option"
tabindex="-1"
:aria-selected="isSelected"
class="lui-option"
:class="optionClasses"
@click="handleOptionClick"
>
Expand Down
1 change: 1 addition & 0 deletions src/components/Overlay/LuiOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const computedOverlayClasses = computed(() => {
<div
v-if="fixed ? show : true"
:class="computedWrapperClasses"
class="lui-overlay"
@click="triggerClose"
@keydown.esc="triggerClose"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover/LuiPopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function closeDialog() {
</script>

<template>
<div class="relative" :class="!block ? 'w-max' : ''">
<div class="lui-popover relative" :class="!block ? 'w-max' : ''">
<div ref="triggerRef">
<slot name="trigger" v-bind="{ ...triggerSlotProps }">
<LuiButton
Expand Down
2 changes: 1 addition & 1 deletion src/components/Radio/LuiRadio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const isChecked = computed<boolean>(() => props.value === props.modelValue)
</script>

<template>
<div class="inline-block leading-3">
<div class="lui-radio inline-block leading-3">
<div class="relative">
<input
type="radio"
Expand Down
1 change: 1 addition & 0 deletions src/components/Select/LuiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ function resetSelectedOption() {
ref="selectWrapperRef"
role="combobox"
aria-haspopup="listbox"
class="lui-select"
:class="selectWrapperClasses"
:aria-expanded="optionsActive"
:aria-controls="optionsId"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/LuiSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const animationClasses = computed(() =>
>
<div
v-if="show"
class="fixed inset-0 z-40 overflow-hidden bg-secondary-900/40"
class="lui-sidebar fixed inset-0 z-40 overflow-hidden bg-secondary-900/40"
@click="emit('close')"
@keydown.esc="emit('close')"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Switch/LuiSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function isInputChecked(): boolean {
</script>

<template>
<div class="inline-block leading-3">
<div class="lui-switch inline-block leading-3">
<div class="relative">
<input
type="checkbox"
Expand Down
45 changes: 0 additions & 45 deletions src/components/Tabs/LuiTab.vue

This file was deleted.

1 change: 1 addition & 0 deletions src/components/Tabs/LuiTabButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function tabListAfterClasses() {
<div
role="tablist"
aria-orientation="horizontal"
class="lui-tab-buttons"
:class="[tabListClasses, !customStyle ? tabListAfterClasses() : '']"
>
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tabs/LuiTabPanels.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
<script setup lang="ts"></script>

<template>
<div class="panel-wrapper">
<div class="lui-tab-panels panel-wrapper">
<slot />
</div>
</template>
228 changes: 0 additions & 228 deletions src/components/Tabs/LuiTabs.vue

This file was deleted.

Loading

0 comments on commit e800077

Please sign in to comment.