coveragebook_components 0.18.4 → 0.18.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 873d4f71088f17fd504337d34daba4dbc925eca1129a56506abe9b84b1eb0bfd
4
- data.tar.gz: 1d2274c2d4971f43a96b82f41aaa34aba382ca101b475d25a1d3ddfe6467285d
3
+ metadata.gz: c274350f8f5561630fe65dc980b1bdcb0341d357dbfd3923e8aabcb5f0a7c582
4
+ data.tar.gz: a0652acb9d326cceb57a5363c1d6399e3cac4d5b1fc6f8c6a7365422605e6f7b
5
5
  SHA512:
6
- metadata.gz: 38a6d6749c1ad9a3866886c83496c174fa571f087f71608d8f17b1d79d4025a5767ed5ca2c3bbeda428651314b339c56b6ce42696fc7e7dac89dd4a51404eca9
7
- data.tar.gz: c2911c87e0b64b05797238fe9a58d8c87bdae68a9be53aebe4f14e2ca67871b52061e076771e9ad5c26a96569caf2a8632abffdb73c8cdc3e4e7c89b8ba08e9c
6
+ metadata.gz: ad21e7ba0e74a7b0cd27ba3efd4a397c2e356c18894086bf75da4f3966e5b9e25bbebc11d894691663ae54e3e1df18bd30202e3000eeff92ba0554cb9fedc559
7
+ data.tar.gz: 7200211fcaebcd48bae2323f8c0cc583cb8a760fb896ffff38420d4af1616a1247d96122c1df7ad100030392213570b681f7f342e5424dc66b9f2817ce21fb62
@@ -771,14 +771,17 @@ select{
771
771
  gap: 0.5rem;
772
772
  text-align: center;
773
773
  width: -moz-fit-content;
774
- width: fit-content
774
+ width: fit-content;
775
+ min-width: 1%
775
776
  }
776
777
 
777
778
  [data-coco].coco-button .button-content{
778
779
  position: relative;
779
780
  order: 2;
780
- display: inline-flex;
781
+ display: inline-block;
781
782
  align-items: center;
783
+ overflow: hidden;
784
+ text-overflow: ellipsis;
782
785
  white-space: nowrap;
783
786
  line-height: 1
784
787
  }
@@ -15444,7 +15444,7 @@ var alpine_default = import_alpinejs.default;
15444
15444
  // ../../../package.json
15445
15445
  var package_default = {
15446
15446
  name: "coveragebook-components",
15447
- version: "0.18.4",
15447
+ version: "0.18.6",
15448
15448
  repository: "git@github.com:coveragebook/coco.git",
15449
15449
  license: "NO LICENSE",
15450
15450
  author: "Mark Perkins <mark@coveragebook.com>",
@@ -15509,11 +15509,11 @@ var package_default = {
15509
15509
  "lodash.keyby": "^4.6.0",
15510
15510
  "lodash.mapvalues": "^4.6.0",
15511
15511
  "lucide-static": "^0.303.0",
15512
- postcss: "^8.4.31",
15512
+ postcss: "^8.4.38",
15513
15513
  "postcss-cli": "^11.0.0",
15514
15514
  "postcss-value-parser": "^4.2.0",
15515
15515
  prettier: "^3.2.5",
15516
- "release-it": "^17.0.1",
15516
+ "release-it": "^17.2.1",
15517
15517
  svgo: "^3.0.2",
15518
15518
  tailwindcss: "^3.4.3",
15519
15519
  "tippy.js": "^6.3.7"
@@ -16545,8 +16545,8 @@ var modal_default = CocoComponent("modal", () => {
16545
16545
  hide() {
16546
16546
  this.open = false;
16547
16547
  setTimeout(() => {
16548
- this.clearFrame();
16549
16548
  this.$dispatch("modal:hidden");
16549
+ this.clearFrame();
16550
16550
  }, 200);
16551
16551
  },
16552
16552
  dismiss(event) {
@@ -10,10 +10,11 @@
10
10
  .button-inner {
11
11
  @apply inline-flex items-center text-center mx-auto gap-2;
12
12
  width: fit-content;
13
+ min-width: 1%;
13
14
  }
14
15
 
15
16
  .button-content {
16
- @apply whitespace-nowrap relative leading-none inline-flex items-center order-2;
17
+ @apply whitespace-nowrap relative leading-none inline-block items-center order-2 truncate;
17
18
  }
18
19
 
19
20
  .button-state-content {
@@ -30,8 +30,8 @@ export default CocoComponent("modal", () => {
30
30
  hide() {
31
31
  this.open = false;
32
32
  setTimeout(() => {
33
- this.clearFrame();
34
33
  this.$dispatch("modal:hidden");
34
+ this.clearFrame();
35
35
  }, 200);
36
36
  },
37
37
 
@@ -27,6 +27,10 @@ module Coco
27
27
  render(Coco::ButtonGroup.new(**), &)
28
28
  end
29
29
 
30
+ def coco_menu(**, &)
31
+ render(Coco::Menu.new(**), &)
32
+ end
33
+
30
34
  def coco_menu_button(text = nil, **, &)
31
35
  render(Coco::MenuButton.new(text: text, **), &)
32
36
  end
@@ -242,7 +246,11 @@ module Coco
242
246
  render(Coco::SeamlessTextarea.new(**), &)
243
247
  end
244
248
 
245
- # Utilties (internal)
249
+ # Utilties
250
+
251
+ def coco_dropdown(**, &)
252
+ render(Coco::Dropdown.new(**), &)
253
+ end
246
254
 
247
255
  def coco_placeholder(text_content = nil, **, &)
248
256
  render(Coco::Placeholder.new(text_content:, **), &)
data/lib/coco.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Coco
2
- VERSION = "0.18.4"
2
+ VERSION = "0.18.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveragebook_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.4
4
+ version: 0.18.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-20 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails