@frollo/frollo-web-ui 9.0.3 → 9.0.4

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/cjs/index.js CHANGED
@@ -12935,7 +12935,7 @@ __default__$7.__scopeId = "data-v-7ca80b5e";var script$6 = vue.defineComponent({
12935
12935
  var uuid = (_globalThis$crypto$ra = (_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 || (_globalThis$crypto$ra2 = _globalThis$crypto.randomUUID) === null || _globalThis$crypto$ra2 === void 0 ? void 0 : _globalThis$crypto$ra2.call(_globalThis$crypto)) !== null && _globalThis$crypto$ra !== void 0 ? _globalThis$crypto$ra : "toast-".concat(Math.random().toString(36).slice(2));
12936
12936
  var isOpen = vue.computed({
12937
12937
  get: function get() {
12938
- return !!props.modelValue;
12938
+ return vue.ref(props.modelValue);
12939
12939
  },
12940
12940
  set: function set(state) {
12941
12941
  return ctx.emit('update:modelValue', state);
@@ -12965,13 +12965,11 @@ __default__$7.__scopeId = "data-v-7ca80b5e";var script$6 = vue.defineComponent({
12965
12965
  ensureContainer();
12966
12966
  isMounted.value = true;
12967
12967
  });
12968
- vue.watch(function () {
12969
- return props.modelValue;
12970
- }, function (open) {
12968
+ vue.watch(isOpen.value, function (open) {
12971
12969
  if (dismissTimer) window.clearTimeout(dismissTimer);
12972
- if (open) {
12970
+ if (open === true) {
12973
12971
  dismissTimer = window.setTimeout(function () {
12974
- isOpen.value = false;
12972
+ isOpen.value.value = false;
12975
12973
  ctx.emit('dismissed');
12976
12974
  }, props.timeout);
12977
12975
  }
@@ -13006,7 +13004,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
13006
13004
  appear: ""
13007
13005
  }, {
13008
13006
  "default": vue.withCtx(function () {
13009
- return [_ctx.isOpen ? (vue.openBlock(), vue.createElementBlock("output", {
13007
+ return [_ctx.isOpen.value ? (vue.openBlock(), vue.createElementBlock("output", {
13010
13008
  id: "fw-toast-".concat(_ctx.uuid),
13011
13009
  key: _ctx.uuid,
13012
13010
  role: "status",
@@ -22454,7 +22452,7 @@ styleInject(css_248z$3);__default__.render = render$4;var getVueComponentHtml =
22454
22452
  var componentHtmlString = tempElement.innerHTML; // Get the HTML string
22455
22453
  return componentHtmlString;
22456
22454
  };var script$3 = vue.defineComponent({
22457
- name: 'MediaPicker',
22455
+ name: 'FwMediaPicker',
22458
22456
  components: {
22459
22457
  FwModal: __default__$a,
22460
22458
  FwButton: script$h,
@@ -1,4 +1,4 @@
1
- export { s as FwMediaPicker } from './index-eP2GMSdQ.js';
1
+ export { s as FwMediaPicker } from './index-BU92JA8Z.js';
2
2
  import './_rollupPluginBabelHelpers-BKlDnZ7n.js';
3
3
  import 'vue';
4
4
  import './index-DHyRsKsZ.js';
package/esm/fw-toast.js CHANGED
@@ -77,7 +77,7 @@ var script = defineComponent({
77
77
  var uuid = (_globalThis$crypto$ra = (_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 || (_globalThis$crypto$ra2 = _globalThis$crypto.randomUUID) === null || _globalThis$crypto$ra2 === void 0 ? void 0 : _globalThis$crypto$ra2.call(_globalThis$crypto)) !== null && _globalThis$crypto$ra !== void 0 ? _globalThis$crypto$ra : "toast-".concat(Math.random().toString(36).slice(2));
78
78
  var isOpen = computed({
79
79
  get: function get() {
80
- return !!props.modelValue;
80
+ return ref(props.modelValue);
81
81
  },
82
82
  set: function set(state) {
83
83
  return ctx.emit('update:modelValue', state);
@@ -107,13 +107,11 @@ var script = defineComponent({
107
107
  ensureContainer();
108
108
  isMounted.value = true;
109
109
  });
110
- watch(function () {
111
- return props.modelValue;
112
- }, function (open) {
110
+ watch(isOpen.value, function (open) {
113
111
  if (dismissTimer) window.clearTimeout(dismissTimer);
114
- if (open) {
112
+ if (open === true) {
115
113
  dismissTimer = window.setTimeout(function () {
116
- isOpen.value = false;
114
+ isOpen.value.value = false;
117
115
  ctx.emit('dismissed');
118
116
  }, props.timeout);
119
117
  }
@@ -150,7 +148,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
150
148
  appear: ""
151
149
  }, {
152
150
  "default": withCtx(function () {
153
- return [_ctx.isOpen ? (openBlock(), createElementBlock("output", {
151
+ return [_ctx.isOpen.value ? (openBlock(), createElementBlock("output", {
154
152
  id: "fw-toast-".concat(_ctx.uuid),
155
153
  key: _ctx.uuid,
156
154
  role: "status",
@@ -16,7 +16,7 @@ var getVueComponentHtml = function getVueComponentHtml(component, props) {
16
16
  };
17
17
 
18
18
  var script = defineComponent({
19
- name: 'MediaPicker',
19
+ name: 'FwMediaPicker',
20
20
  components: {
21
21
  FwModal: __default__,
22
22
  FwButton: script$1,
package/esm/index.js CHANGED
@@ -23,8 +23,8 @@ import { FwDrawer as __default__$4 } from './fw-drawer.js';
23
23
  import { FwProviderList as __default__$a } from './fw-provider-list.js';
24
24
  import { FwDatePicker as __default__$3 } from './fw-date-picker.js';
25
25
  import './fw-popover.js';
26
- import { s as script$7 } from './index-eP2GMSdQ.js';
27
- export { g as getVueComponentHtml } from './index-eP2GMSdQ.js';
26
+ import { s as script$7 } from './index-BU92JA8Z.js';
27
+ export { g as getVueComponentHtml } from './index-BU92JA8Z.js';
28
28
  import { FwSlider as script$b } from './fw-slider.js';
29
29
  import { FwBarChart as script$1 } from './fw-bar-chart.js';
30
30
  import { FwSuccessAnimation as script$c } from './fw-icons.js';
@@ -13380,7 +13380,7 @@ var script$6 = defineComponent({
13380
13380
  var uuid = (_globalThis$crypto$ra = (_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 || (_globalThis$crypto$ra2 = _globalThis$crypto.randomUUID) === null || _globalThis$crypto$ra2 === void 0 ? void 0 : _globalThis$crypto$ra2.call(_globalThis$crypto)) !== null && _globalThis$crypto$ra !== void 0 ? _globalThis$crypto$ra : "toast-".concat(Math.random().toString(36).slice(2));
13381
13381
  var isOpen = computed({
13382
13382
  get: function get() {
13383
- return !!props.modelValue;
13383
+ return ref(props.modelValue);
13384
13384
  },
13385
13385
  set: function set(state) {
13386
13386
  return ctx.emit('update:modelValue', state);
@@ -13410,13 +13410,11 @@ var script$6 = defineComponent({
13410
13410
  ensureContainer();
13411
13411
  isMounted.value = true;
13412
13412
  });
13413
- watch(function () {
13414
- return props.modelValue;
13415
- }, function (open) {
13413
+ watch(isOpen.value, function (open) {
13416
13414
  if (dismissTimer) window.clearTimeout(dismissTimer);
13417
- if (open) {
13415
+ if (open === true) {
13418
13416
  dismissTimer = window.setTimeout(function () {
13419
- isOpen.value = false;
13417
+ isOpen.value.value = false;
13420
13418
  ctx.emit('dismissed');
13421
13419
  }, props.timeout);
13422
13420
  }
@@ -13453,7 +13451,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
13453
13451
  appear: ""
13454
13452
  }, {
13455
13453
  "default": withCtx(function () {
13456
- return [_ctx.isOpen ? (openBlock(), createElementBlock("output", {
13454
+ return [_ctx.isOpen.value ? (openBlock(), createElementBlock("output", {
13457
13455
  id: "fw-toast-".concat(_ctx.uuid),
13458
13456
  key: _ctx.uuid,
13459
13457
  role: "status",
@@ -22951,7 +22949,7 @@ var getVueComponentHtml = function getVueComponentHtml(component, props) {
22951
22949
  };
22952
22950
 
22953
22951
  var script$3 = defineComponent({
22954
- name: 'MediaPicker',
22952
+ name: 'FwMediaPicker',
22955
22953
  components: {
22956
22954
  FwModal: __default__$a,
22957
22955
  FwButton: script$h,
package/index.d.ts CHANGED
@@ -3465,7 +3465,7 @@ declare const _default$6: vue.DefineComponent<vue.ExtractPropTypes<{
3465
3465
  };
3466
3466
  }>, {
3467
3467
  isMounted: vue.Ref<boolean, boolean>;
3468
- isOpen: vue.WritableComputedRef<boolean, boolean>;
3468
+ isOpen: vue.WritableComputedRef<vue.Ref<boolean, boolean>, vue.Ref<boolean, boolean>>;
3469
3469
  uuid: `${string}-${string}-${string}-${string}-${string}`;
3470
3470
  containerEl: vue.ComputedRef<string>;
3471
3471
  baseClass: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "9.0.3",
3
+ "version": "9.0.4",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -19,13 +19,15 @@
19
19
  "build:docs": "bin/build-docs.sh",
20
20
  "build:lib": "bin/build-lib.sh",
21
21
  "deploy": "bin/publish.sh",
22
+ "deploy-docs": "bin/build-gh-docs.sh",
22
23
  "release": "bin/release.sh",
23
24
  "test:unit": "vitest run --coverage",
24
25
  "test:single": "vitest watch",
25
26
  "lint": "eslint --cache ./src",
26
27
  "lint:fix": "eslint --cache ./src --fix",
27
28
  "tw-config-export": "mkdir -p ./dist && tailwind-config-viewer export ./dist/twconfig-viewer && rimraf ./dist/twconfig-viewer/favicon.ico",
28
- "build-storybook": "storybook build"
29
+ "build-storybook": "storybook build",
30
+ "storybook-docs": "storybook dev --docs"
29
31
  },
30
32
  "dependencies": {
31
33
  "vue": "^3.5.25"
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
47
  };
48
48
  }>, {
49
49
  isMounted: import("vue").Ref<boolean, boolean>;
50
- isOpen: import("vue").WritableComputedRef<boolean, boolean>;
50
+ isOpen: import("vue").WritableComputedRef<import("vue").Ref<boolean, boolean>, import("vue").Ref<boolean, boolean>>;
51
51
  uuid: `${string}-${string}-${string}-${string}-${string}`;
52
52
  containerEl: import("vue").ComputedRef<string>;
53
53
  baseClass: string;
@@ -26353,7 +26353,7 @@ Expected function or array of functions, received type ${typeof value}.`
26353
26353
  var uuid = (_globalThis$crypto$ra = (_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 || (_globalThis$crypto$ra2 = _globalThis$crypto.randomUUID) === null || _globalThis$crypto$ra2 === void 0 ? void 0 : _globalThis$crypto$ra2.call(_globalThis$crypto)) !== null && _globalThis$crypto$ra !== void 0 ? _globalThis$crypto$ra : "toast-".concat(Math.random().toString(36).slice(2));
26354
26354
  var isOpen = computed({
26355
26355
  get: function get() {
26356
- return !!props.modelValue;
26356
+ return ref(props.modelValue);
26357
26357
  },
26358
26358
  set: function set(state) {
26359
26359
  return ctx.emit('update:modelValue', state);
@@ -26383,13 +26383,11 @@ Expected function or array of functions, received type ${typeof value}.`
26383
26383
  ensureContainer();
26384
26384
  isMounted.value = true;
26385
26385
  });
26386
- watch(function () {
26387
- return props.modelValue;
26388
- }, function (open) {
26386
+ watch(isOpen.value, function (open) {
26389
26387
  if (dismissTimer) window.clearTimeout(dismissTimer);
26390
- if (open) {
26388
+ if (open === true) {
26391
26389
  dismissTimer = window.setTimeout(function () {
26392
- isOpen.value = false;
26390
+ isOpen.value.value = false;
26393
26391
  ctx.emit('dismissed');
26394
26392
  }, props.timeout);
26395
26393
  }
@@ -26426,7 +26424,7 @@ Expected function or array of functions, received type ${typeof value}.`
26426
26424
  appear: ""
26427
26425
  }, {
26428
26426
  "default": withCtx(function () {
26429
- return [_ctx.isOpen ? (openBlock(), createElementBlock("output", {
26427
+ return [_ctx.isOpen.value ? (openBlock(), createElementBlock("output", {
26430
26428
  id: "fw-toast-".concat(_ctx.uuid),
26431
26429
  key: _ctx.uuid,
26432
26430
  role: "status",
@@ -35924,7 +35922,7 @@ Expected function or array of functions, received type ${typeof value}.`
35924
35922
  };
35925
35923
 
35926
35924
  var script$3 = defineComponent({
35927
- name: 'MediaPicker',
35925
+ name: 'FwMediaPicker',
35928
35926
  components: {
35929
35927
  FwModal: __default__$a,
35930
35928
  FwButton: script$h,