Skip to content

Commit

Permalink
deploy: fa91be0
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Dec 30, 2024
1 parent f62e4ee commit 3eefc7d
Show file tree
Hide file tree
Showing 165 changed files with 3,812 additions and 3,725 deletions.
4 changes: 2 additions & 2 deletions __sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="">
<link rel="stylesheet" href="/assets/style-b10b0ca8.css">
<link rel="stylesheet" href="/assets/style-DJBpgTVz.css">
<link rel="icon" type="image/png" href="/frappe-ui-square.png"/>

</head>
<body>
<div id="app"></div>
<script type="module" src="/assets/bundle-sandbox-6214f766.js"></script>
<script type="module" src="/assets/bundle-sandbox-UZYnX6Pg.js"></script>
</body>
</html>
37 changes: 14 additions & 23 deletions assets/Autocomplete-f413d8b8.js → assets/Autocomplete-Dy3gPyuT.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ay as defineComponent, az as ref, br as computed, bt as watch, bu as nextTick, bv as lt, bw as it, bx as rt, by as ut, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, bk as renderSlot, aR as normalizeProps, aS as guardReactiveProps, aF as createBaseVNode, aQ as normalizeClass, aG as createElementBlock, aN as toDisplayString, b0 as withDirectives, aH as createCommentVNode, aK as Fragment, aJ as renderList, aL as mergeProps, b1 as vShow, bz as withModifiers } from "./vendor-3b8d0bfc.js";
import { P as Popover } from "./Popover-2741613b.js";
import { B as Button } from "./Button-f8ca7b7d.js";
import { F as FeatherIcon } from "./FeatherIcon-dfb91a0c.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import { ay as defineComponent, az as ref, br as computed, bt as watch, bu as nextTick, bv as lt, bw as it, bx as rt, by as ut, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, bk as renderSlot, aR as normalizeProps, aS as guardReactiveProps, aF as createBaseVNode, aQ as normalizeClass, aG as createElementBlock, aN as toDisplayString, b0 as withDirectives, aH as createCommentVNode, aK as Fragment, aJ as renderList, aL as mergeProps, b1 as vShow, bz as withModifiers } from "./vendor-D4tQXw0h.js";
import { P as Popover } from "./Popover-DXQPMgPX.js";
import { B as Button } from "./Button-CeJ2Oqur.js";
import { F as FeatherIcon } from "./FeatherIcon-BDzageq3.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Autocomplete",
props: {
Expand All @@ -22,8 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
const query = ref("");
const groups = computed(() => {
var _a;
if (!((_a = props.options) == null ? void 0 : _a.length))
return [];
if (!((_a = props.options) == null ? void 0 : _a.length)) return [];
let groups2;
if (isOptionGroup(props.options[0])) {
groups2 = props.options;
Expand All @@ -49,15 +48,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
return groups.value.flatMap((group) => group.items);
});
const sanitizeOptions = (options) => {
if (!options)
return [];
if (!options) return [];
return options.map((option) => {
return isOption(option) ? option : { label: option.toString(), value: option };
});
};
const filterOptions = (options) => {
if (!query.value)
return options;
if (!query.value) return options;
return options.filter((option) => {
return option.label.toLowerCase().includes(query.value.trim().toLowerCase()) || option.value.toString().toLowerCase().includes(query.value.trim().toLowerCase());
});
Expand All @@ -68,14 +65,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
return findOption(props.modelValue);
}
let values = props.modelValue;
if (!values)
return [];
if (!values) return [];
return isOption(values[0]) ? values : values.map((v) => findOption(v));
},
set(val) {
query.value = "";
if (val && !props.multiple)
showOptions.value = false;
if (val && !props.multiple) showOptions.value = false;
if (!props.multiple) {
emit("update:modelValue", val);
return;
Expand All @@ -84,8 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
}
});
const findOption = (option) => {
if (!option)
return option;
if (!option) return option;
const value = isOption(option) ? option.value : option;
return allOptions.value.find((o) => o.value === value);
};
Expand All @@ -96,16 +90,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
return option;
};
const displayValue = computed(() => {
if (!selectedValue.value)
return "";
if (!selectedValue.value) return "";
if (!props.multiple) {
return getLabel(selectedValue.value);
}
return selectedValue.value.map((v) => getLabel(v)).join(", ");
});
const isOptionSelected = (option) => {
if (!selectedValue.value)
return false;
if (!selectedValue.value) return false;
const value = isOption(option) ? option.value : option;
if (!props.multiple) {
return selectedValue.value === value;
Expand All @@ -116,8 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
};
const areAllOptionsSelected = computed(() => {
var _a;
if (!props.multiple)
return false;
if (!props.multiple) return false;
return allOptions.value.length === ((_a = selectedValue.value) == null ? void 0 : _a.length);
});
const selectAll = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ay as defineComponent, az as ref, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aF as createBaseVNode, aG as createElementBlock, aH as createCommentVNode } from "./vendor-3b8d0bfc.js";
import { A as Autocomplete } from "./Autocomplete-f413d8b8.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import "./Popover-2741613b.js";
import "./Button-f8ca7b7d.js";
import "./FeatherIcon-dfb91a0c.js";
import { ay as defineComponent, az as ref, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aF as createBaseVNode, aG as createElementBlock, aH as createCommentVNode } from "./vendor-D4tQXw0h.js";
import { A as Autocomplete } from "./Autocomplete-Dy3gPyuT.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
import "./Popover-DXQPMgPX.js";
import "./Button-CeJ2Oqur.js";
import "./FeatherIcon-BDzageq3.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Autocomplete.story",
setup(__props, { expose: __expose }) {
Expand Down
4 changes: 2 additions & 2 deletions assets/Avatar-3a22144c.js → assets/Avatar-DIa5TA7o.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ay as defineComponent, az as ref, br as computed, aB as openBlock, aG as createElementBlock, aQ as normalizeClass, bk as renderSlot, aK as Fragment, aM as createTextVNode, aN as toDisplayString, aF as createBaseVNode, aH as createCommentVNode } from "./vendor-3b8d0bfc.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import { ay as defineComponent, az as ref, br as computed, aB as openBlock, aG as createElementBlock, aQ as normalizeClass, bk as renderSlot, aK as Fragment, aM as createTextVNode, aN as toDisplayString, aF as createBaseVNode, aH as createCommentVNode } from "./vendor-D4tQXw0h.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Avatar",
props: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ay as defineComponent, aI as reactive, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aG as createElementBlock, aJ as renderList, aK as Fragment, aL as mergeProps } from "./vendor-3b8d0bfc.js";
import { A as Avatar } from "./Avatar-3a22144c.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import { ay as defineComponent, aI as reactive, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aG as createElementBlock, aJ as renderList, aK as Fragment, aL as mergeProps } from "./vendor-D4tQXw0h.js";
import { A as Avatar } from "./Avatar-DIa5TA7o.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Avatar.story",
setup(__props, { expose: __expose }) {
Expand Down
4 changes: 2 additions & 2 deletions assets/Badge-17025005.js → assets/Badge-CTqCBk9r.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ay as defineComponent, br as computed, aB as openBlock, aG as createElementBlock, aQ as normalizeClass, bk as renderSlot, aH as createCommentVNode, aM as createTextVNode, aN as toDisplayString } from "./vendor-3b8d0bfc.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import { ay as defineComponent, br as computed, aB as openBlock, aG as createElementBlock, aQ as normalizeClass, bk as renderSlot, aH as createCommentVNode, aM as createTextVNode, aN as toDisplayString } from "./vendor-D4tQXw0h.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Badge",
props: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ay as defineComponent, aI as reactive, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aG as createElementBlock, aJ as renderList, aK as Fragment, aL as mergeProps, aM as createTextVNode, aN as toDisplayString } from "./vendor-3b8d0bfc.js";
import { B as Badge } from "./Badge-17025005.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import { ay as defineComponent, aI as reactive, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aG as createElementBlock, aJ as renderList, aK as Fragment, aL as mergeProps, aM as createTextVNode, aN as toDisplayString } from "./vendor-D4tQXw0h.js";
import { B as Badge } from "./Badge-CTqCBk9r.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Badge.story",
setup(__props, { expose: __expose }) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ as _export_sfc } from "./MobileOverlay.vue2-24879cc5.js";
import { o as openBlock, b as createElementBlock, a6 as renderSlot } from "./vendor-3b8d0bfc.js";
import { _ as _export_sfc } from "./MobileOverlay.vue2-Dj9o_MUM.js";
import { o as openBlock, b as createElementBlock, a6 as renderSlot } from "./vendor-D4tQXw0h.js";
const _sfc_main = {};
const _hoisted_1 = { class: "histoire-base-empty htw-base-empty htw-flex htw-flex-col htw-items-center htw-justify-center htw-space-y-4 htw-py-12 htw-h-full htw-text-center htw-text-gray-400 htw-text-lg" };
function _sfc_render(_ctx, _cache) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ay as defineComponent, bq as useRouter, bA as useWindowSize, br as computed, aA as resolveComponent, aB as openBlock, aG as createElementBlock, aK as Fragment, aE as createVNode, aD as withCtx, aF as createBaseVNode, aH as createCommentVNode, aJ as renderList, aC as createBlock, bk as renderSlot, aN as toDisplayString, aQ as normalizeClass } from "./vendor-3b8d0bfc.js";
import { D as Dropdown } from "./Dropdown-ec4939d7.js";
import { B as Button } from "./Button-f8ca7b7d.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import { ay as defineComponent, bq as useRouter, bA as useWindowSize, br as computed, aA as resolveComponent, aB as openBlock, aG as createElementBlock, aK as Fragment, aE as createVNode, aD as withCtx, aF as createBaseVNode, aH as createCommentVNode, aJ as renderList, aC as createBlock, bk as renderSlot, aN as toDisplayString, aQ as normalizeClass } from "./vendor-D4tQXw0h.js";
import { D as Dropdown } from "./Dropdown-BczQWD8o.js";
import { B as Button } from "./Button-CeJ2Oqur.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Breadcrumbs",
props: {
Expand All @@ -16,8 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
return (props.items || []).filter(Boolean);
});
const dropdownItems = computed(() => {
if (width.value > 640)
return [];
if (width.value > 640) return [];
let allExceptLastTwo = items.value.slice(0, -2);
return allExceptLastTwo.map((item) => {
let onClick = () => {
Expand All @@ -36,8 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
});
});
const crumbs = computed(() => {
if (width.value > 640)
return items.value;
if (width.value > 640) return items.value;
let lastTwo = items.value.slice(-2);
return lastTwo;
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ay as defineComponent, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aO as logEvent, aE as createVNode, aF as createBaseVNode, aN as toDisplayString } from "./vendor-3b8d0bfc.js";
import { B as Breadcrumbs } from "./Breadcrumbs-d74d80a2.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import "./Dropdown-ec4939d7.js";
import "./Popover-2741613b.js";
import "./Button-f8ca7b7d.js";
import "./FeatherIcon-dfb91a0c.js";
import { ay as defineComponent, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aO as logEvent, aE as createVNode, aF as createBaseVNode, aN as toDisplayString } from "./vendor-D4tQXw0h.js";
import { B as Breadcrumbs } from "./Breadcrumbs-C50t6-En.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
import "./Dropdown-BczQWD8o.js";
import "./Popover-DXQPMgPX.js";
import "./Button-CeJ2Oqur.js";
import "./FeatherIcon-BDzageq3.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Breadcrumbs.story",
setup(__props, { expose: __expose }) {
Expand Down
6 changes: 3 additions & 3 deletions assets/Button-f8ca7b7d.js → assets/Button-CeJ2Oqur.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { aB as openBlock, aG as createElementBlock, aF as createBaseVNode, ay as defineComponent, bp as useSlots, bq as useRouter, br as computed, aC as createBlock, aQ as normalizeClass, bk as renderSlot, a$ as resolveDynamicComponent, aH as createCommentVNode, aK as Fragment, aM as createTextVNode, aN as toDisplayString, aL as mergeProps } from "./vendor-3b8d0bfc.js";
import { F as FeatherIcon } from "./FeatherIcon-dfb91a0c.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import { aB as openBlock, aG as createElementBlock, aF as createBaseVNode, ay as defineComponent, bp as useSlots, bq as useRouter, br as computed, aC as createBlock, aQ as normalizeClass, bk as renderSlot, a$ as resolveDynamicComponent, aH as createCommentVNode, aK as Fragment, aM as createTextVNode, aN as toDisplayString, aL as mergeProps } from "./vendor-D4tQXw0h.js";
import { F as FeatherIcon } from "./FeatherIcon-BDzageq3.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
const _sfc_main$1 = {};
const _hoisted_1$1 = {
class: "max-w-xs animate-spin",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ay as defineComponent, aI as reactive, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aG as createElementBlock, aJ as renderList, aK as Fragment, aF as createBaseVNode, aL as mergeProps, aM as createTextVNode, aN as toDisplayString } from "./vendor-3b8d0bfc.js";
import { B as Button } from "./Button-f8ca7b7d.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
import "./FeatherIcon-dfb91a0c.js";
import { ay as defineComponent, aI as reactive, aA as resolveComponent, aB as openBlock, aC as createBlock, aD as withCtx, aE as createVNode, aG as createElementBlock, aJ as renderList, aK as Fragment, aF as createBaseVNode, aL as mergeProps, aM as createTextVNode, aN as toDisplayString } from "./vendor-D4tQXw0h.js";
import { B as Button } from "./Button-CeJ2Oqur.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
import "./FeatherIcon-BDzageq3.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "Button.story",
setup(__props, { expose: __expose }) {
Expand Down
Loading

0 comments on commit 3eefc7d

Please sign in to comment.