@rebilly/revel 4.6.0 → 4.8.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [4.8.0](https://github.com/Rebilly/rebilly/compare/revel-v4.7.0...revel-v4.8.0) (2023-05-18)
2
+
3
+
4
+ ### Features
5
+
6
+ * **revel:** Update unstyled button style ([#271](https://github.com/Rebilly/rebilly/issues/271)) ([2d83ca7](https://github.com/Rebilly/rebilly/commit/2d83ca72d2657c5287cc75f9a9c38d775bace9b4))
7
+
8
+ ## [4.7.0](https://github.com/Rebilly/rebilly/compare/revel-v4.6.0...revel-v4.7.0) (2023-05-17)
9
+
10
+
11
+ ### Features
12
+
13
+ * **revel:** Update r-button icon loading states ([#264](https://github.com/Rebilly/rebilly/issues/264)) ([97896a5](https://github.com/Rebilly/rebilly/commit/97896a5cabcea9306fe46a377f0cac322661dec1))
14
+
1
15
  ## [4.6.0](https://github.com/Rebilly/rebilly/compare/revel-v4.5.1...revel-v4.6.0) (2023-05-16)
2
16
 
3
17
 
package/dist/revel.es.js CHANGED
@@ -1914,8 +1914,8 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
1914
1914
  ? (openBlock(), createBlock(_component_r_icon, {
1915
1915
  key: 0,
1916
1916
  icon: "loading",
1917
- class: "r-is-spinning r-icon-light-gray r-inline-3"
1918
- }))
1917
+ class: normalizeClass(["r-is-spinning r-icon-light-gray", { 'r-inline-3': !$props.icon }])
1918
+ }, null, 8, ["class"]))
1919
1919
  : createCommentVNode("", true),
1920
1920
  ($props.iconLeft && !$props.loading)
1921
1921
  ? (openBlock(), createBlock(_component_r_icon, {
@@ -1923,23 +1923,25 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
1923
1923
  icon: $props.iconLeft
1924
1924
  }, null, 8, ["icon"]))
1925
1925
  : createCommentVNode("", true),
1926
- ($props.icon)
1926
+ ($props.icon && !$props.loading)
1927
1927
  ? (openBlock(), createBlock(_component_r_icon, {
1928
1928
  key: 2,
1929
1929
  icon: $props.icon
1930
1930
  }, null, 8, ["icon"]))
1931
- : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
1932
- ($props.capitalizeFirstLetter)
1933
- ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
1934
- renderSlot(_ctx.$slots, "default", {}, () => [
1931
+ : (!$props.icon)
1932
+ ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
1933
+ ($props.capitalizeFirstLetter)
1934
+ ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
1935
+ renderSlot(_ctx.$slots, "default", {}, () => [
1936
+ createTextVNode("Apply")
1937
+ ])
1938
+ ]))
1939
+ : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
1935
1940
  createTextVNode("Apply")
1936
1941
  ])
1937
- ]))
1938
- : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
1939
- createTextVNode("Apply")
1940
- ])
1941
- ], 64)),
1942
- ($props.iconRight)
1942
+ ], 64))
1943
+ : createCommentVNode("", true),
1944
+ ($props.iconRight && !$props.loading)
1943
1945
  ? (openBlock(), createBlock(_component_r_icon, {
1944
1946
  key: 4,
1945
1947
  icon: $props.iconRight
@@ -17316,7 +17318,6 @@ const _sfc_main$b = {
17316
17318
  components: {
17317
17319
  RLoader,
17318
17320
  RButton,
17319
- RIcon: rIcon,
17320
17321
  },
17321
17322
  props: {
17322
17323
  /**
@@ -17459,7 +17460,6 @@ const _hoisted_8$2 = {
17459
17460
  };
17460
17461
 
17461
17462
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
17462
- const _component_r_icon = resolveComponent("r-icon");
17463
17463
  const _component_r_button = resolveComponent("r-button");
17464
17464
  const _component_r_loader = resolveComponent("r-loader");
17465
17465
 
@@ -17503,15 +17503,12 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
17503
17503
  ]))
17504
17504
  : createCommentVNode("", true),
17505
17505
  createVNode(_component_r_button, {
17506
- type: "link",
17506
+ type: "plain",
17507
+ size: "small",
17507
17508
  class: "r-modal-btn-close",
17508
17509
  "aria-label": "close",
17510
+ icon: "close",
17509
17511
  onClick: _cache[0] || (_cache[0] = $event => (_ctx.$emit('close')))
17510
- }, {
17511
- default: withCtx(() => [
17512
- createVNode(_component_r_icon, { icon: "close" })
17513
- ]),
17514
- _: 1
17515
17512
  })
17516
17513
  ]))
17517
17514
  : createCommentVNode("", true),