Skip to content

Commit

Permalink
[PLA-1793] fueltank checkbox (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine authored Jul 1, 2024
1 parent 0f04919 commit c0ee820
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 119 deletions.
201 changes: 103 additions & 98 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"vite-plugin-dynamic-base": "^0.4.9",
"vite-plugin-dynamic-import": "^1.2.7",
"vite-plugin-eslint": "^1.8.1",
"vue": "^3.3.4",
"vue": "^3.4.21",
"vue-loader": "^17.2.2",
"vue-recaptcha": "^2.0.2",
"vue-router": "^4.2.2",
Expand Down
11 changes: 2 additions & 9 deletions resources/js/components/MultiCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:class="[
hasValue(option.value)
? 'ring-primary'
: 'ring-light-stroke-strong dark:ring-dark-stroke-strong',
: 'ring-light-stroke-strong',
'relative flex cursor-pointer rounded-lg ring-2 bg-light-surface-primary dark:bg-dark-surface-primary p-4 shadow-sm focus:outline-none transition-all',
]"
@click="updateCheckbox(option.value)"
Expand All @@ -40,13 +40,6 @@
</Tooltip>
</span>
</span>
<span
:class="[
hasValue(option.value) ? '' : 'border-2',
'pointer-events-none absolute -inset-px rounded-lg transition-all',
]"
aria-hidden="true"
/>
</div>
</template>
</div>
Expand All @@ -60,7 +53,7 @@ import { QuestionMarkCircleIcon } from '@heroicons/vue/24/outline';
const props = withDefaults(
defineProps<{
label: string;
label?: string;
description?: string;
options: { label: string; value: string; tooltip?: string }[];
modelValue: string[];
Expand Down
13 changes: 12 additions & 1 deletion resources/js/components/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:arrow="arrow"
:class="theme"
:block="block"
:hover="hover"
:show="show"
:offset-distance="offsetDistance"
:placement="(placement as any)"
Expand Down Expand Up @@ -61,12 +60,24 @@ withDefaults(
--popper-theme-text-color: #000;
}
@mixin dark-mode {
@include base-style;
}
.light {
@include light-mode;
--popper-theme-padding: 0;
--popper-theme-border-radius: 0.5rem;
}
.dark {
@include dark-mode;
--popper-theme-padding: 0;
--popper-theme-border-radius: 0.5rem;
--popper-theme-border-width: 2px;
--popper-theme-border-color: hsl(0, 0%, 15%);
}
.mobile {
@include light-mode;
--popper-theme-border-radius: 0;
Expand Down
Loading

0 comments on commit c0ee820

Please sign in to comment.