@rarui/components 1.15.0 → 1.17.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
@@ -2,6 +2,18 @@
2
2
 
3
3
  `@rarui/components` components is a component library built with [Lit](https://lit.dev/).
4
4
 
5
+ ## 2025-07-03 `1.17.0`
6
+
7
+ #### 🎉 New features
8
+
9
+ - Added new surface `Modal` component. ([#125](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/125) by [@junior](https://git.rarolabs.com.br/junior))
10
+
11
+ ## 2025-06-30 `1.16.0`
12
+
13
+ #### 🎉 New features
14
+
15
+ - Added new input `Dropdown` component. ([#124](https://git.rarolabs.com.br/frontend/rarui/-/merge_requests/124) by [@junior](https://git.rarolabs.com.br/junior))
16
+
5
17
  ## 2025-06-27 `1.15.0`
6
18
 
7
19
  #### 🎉 New features
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.14.0",
2
+ "version": "1.16.0",
3
3
  "tags": [
4
4
  {
5
5
  "name": "rarui-avatar",
@@ -2091,7 +2091,7 @@
2091
2091
  {
2092
2092
  "name": "position",
2093
2093
  "default": "bottom",
2094
- "description": "Position of the popover.\n\n- bottom\n- bottom-end\n- bottom-start\n- left\n- left-end\n- left-start\n- right\n- right-end\n- right-start\n- top\n- top-end\n- top-start",
2094
+ "description": "Position of the tooltip.\n\n- bottom\n- bottom-end\n- bottom-start\n- left\n- left-end\n- left-start\n- right\n- right-end\n- right-start\n- top\n- top-end\n- top-start",
2095
2095
  "type": "string",
2096
2096
  "values": [
2097
2097
  {
@@ -2691,6 +2691,223 @@
2691
2691
  }
2692
2692
  ]
2693
2693
  },
2694
+ {
2695
+ "name": "rarui-dropdown",
2696
+ "description": "## Rarui Dropdown\n---\nAn suspended menu displays a list of options on a temporary surface.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/dropdown) for more details.",
2697
+ "attributes": [
2698
+ {
2699
+ "name": "padding",
2700
+ "default": "base",
2701
+ "description": "Specifies the padding inside the dropdown menu. This prop accepts one of the following values: \"base\" or \"none\".\n\n- base\n- none",
2702
+ "type": "string",
2703
+ "values": [
2704
+ {
2705
+ "name": "base",
2706
+ "description": "(default)"
2707
+ },
2708
+ {
2709
+ "name": "none"
2710
+ }
2711
+ ]
2712
+ },
2713
+ {
2714
+ "name": "width",
2715
+ "description": "The **`width`** CSS property sets an element's width. By default, it sets the width of the content area, but if `box-sizing` is set to `border-box`, it sets the width of the border area. It is also possible to pass a specific value.\n\n\n**Initial value**: `auto`\n\nThis property supports responsive values. You can pass a single value like `\"auto\"`.\n\n Or an object like:\n \n ```\n{\n \"xs\": \"auto\",\n \"md\": \"fit-content\",\n \"lg\": \"intrinsic\",\n \"xl\": \"max-content\"\n}\n```\n\n- auto\n- fit-content\n- intrinsic\n- max-content\n- min-content\n- min-intrinsic\n- stretch",
2716
+ "values": [
2717
+ {
2718
+ "name": "auto"
2719
+ },
2720
+ {
2721
+ "name": "fit-content"
2722
+ },
2723
+ {
2724
+ "name": "intrinsic"
2725
+ },
2726
+ {
2727
+ "name": "max-content"
2728
+ },
2729
+ {
2730
+ "name": "min-content"
2731
+ },
2732
+ {
2733
+ "name": "min-intrinsic"
2734
+ },
2735
+ {
2736
+ "name": "stretch"
2737
+ }
2738
+ ]
2739
+ },
2740
+ {
2741
+ "name": "max-width",
2742
+ "description": "The **`max-width`** CSS property sets the maximum width of an element. It prevents the used value of the `width` property from becoming larger than the value specified by `max-width`. It is also possible to pass a specific value.\n\n\n**Initial value**: `none`\n\nThis property supports responsive values. You can pass a single value like `\"fit-content\"`.\n\n Or an object like:\n \n ```\n{\n \"xs\": \"fit-content\",\n \"md\": \"intrinsic\",\n \"lg\": \"max-content\",\n \"xl\": \"min-content\"\n}\n```\n\n- fit-content\n- intrinsic\n- max-content\n- min-content\n- none\n- stretch",
2743
+ "values": [
2744
+ {
2745
+ "name": "fit-content"
2746
+ },
2747
+ {
2748
+ "name": "intrinsic"
2749
+ },
2750
+ {
2751
+ "name": "max-content"
2752
+ },
2753
+ {
2754
+ "name": "min-content"
2755
+ },
2756
+ {
2757
+ "name": "none"
2758
+ },
2759
+ {
2760
+ "name": "stretch"
2761
+ }
2762
+ ]
2763
+ },
2764
+ {
2765
+ "name": "match-reference-width",
2766
+ "default": false,
2767
+ "description": "A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.",
2768
+ "type": "boolean"
2769
+ },
2770
+ {
2771
+ "name": "enabled-dismiss",
2772
+ "default": true,
2773
+ "description": "Adds listeners that dismiss (close) the floating element.",
2774
+ "type": "boolean"
2775
+ },
2776
+ {
2777
+ "name": "enabled-click",
2778
+ "default": true,
2779
+ "description": "Adds click event listeners that change the open state.",
2780
+ "type": "boolean"
2781
+ },
2782
+ {
2783
+ "name": "enabled-flip",
2784
+ "default": true,
2785
+ "description": "Determines whether the dropdown should enable flipping the options' dropdown when there is not enough space to display it in its default direction.\nThis can help ensure the dropdown is always visible on the screen.",
2786
+ "type": "boolean"
2787
+ },
2788
+ {
2789
+ "name": "offset",
2790
+ "default": 10,
2791
+ "description": "Offest displaces the floating element from its core placement along the specified axes.",
2792
+ "type": "number"
2793
+ },
2794
+ {
2795
+ "name": "visible",
2796
+ "description": "If true, the component is shown.",
2797
+ "type": "boolean"
2798
+ },
2799
+ {
2800
+ "name": "z-index",
2801
+ "description": "The zIndex property specifies the stack order of the box.\n\nThis property supports responsive values. You can pass a single value like `\"$100\"`.\n\n Or an object like:\n \n ```\n{\n \"xs\": \"$100\",\n \"md\": \"$200\",\n \"lg\": \"$300\",\n \"xl\": \"$400\"\n}\n```\n\n- $100\n- $200\n- $300\n- $400\n- $500\n- $600\n- $700\n- $800\n- $900",
2802
+ "values": [
2803
+ {
2804
+ "name": "$100"
2805
+ },
2806
+ {
2807
+ "name": "$200"
2808
+ },
2809
+ {
2810
+ "name": "$300"
2811
+ },
2812
+ {
2813
+ "name": "$400"
2814
+ },
2815
+ {
2816
+ "name": "$500"
2817
+ },
2818
+ {
2819
+ "name": "$600"
2820
+ },
2821
+ {
2822
+ "name": "$700"
2823
+ },
2824
+ {
2825
+ "name": "$800"
2826
+ },
2827
+ {
2828
+ "name": "$900"
2829
+ }
2830
+ ]
2831
+ },
2832
+ {
2833
+ "name": "position",
2834
+ "default": "bottom-start",
2835
+ "description": "Position of the dropdown.\n\n- bottom\n- bottom-end\n- bottom-start\n- left\n- left-end\n- left-start\n- right\n- right-end\n- right-start\n- top\n- top-end\n- top-start",
2836
+ "type": "string",
2837
+ "values": [
2838
+ {
2839
+ "name": "bottom"
2840
+ },
2841
+ {
2842
+ "name": "bottom-end"
2843
+ },
2844
+ {
2845
+ "name": "bottom-start",
2846
+ "description": "(default)"
2847
+ },
2848
+ {
2849
+ "name": "left"
2850
+ },
2851
+ {
2852
+ "name": "left-end"
2853
+ },
2854
+ {
2855
+ "name": "left-start"
2856
+ },
2857
+ {
2858
+ "name": "right"
2859
+ },
2860
+ {
2861
+ "name": "right-end"
2862
+ },
2863
+ {
2864
+ "name": "right-start"
2865
+ },
2866
+ {
2867
+ "name": "top"
2868
+ },
2869
+ {
2870
+ "name": "top-end"
2871
+ },
2872
+ {
2873
+ "name": "top-start"
2874
+ }
2875
+ ]
2876
+ },
2877
+ {
2878
+ "name": "strategy",
2879
+ "default": "fixed",
2880
+ "description": "CSS positioning strategy used for the tooltip.\n\n- `\"fixed\"` (default) positions the tooltip relative to the viewport,\n so it stays in the same place even when the page is scrolled.\n- `\"absolute\"` positions the tooltip relative to the nearest positioned ancestor,\n which can be useful when you want the tooltip to move with page content.\n\nUse `\"fixed\"` for tooltips that should remain visible on scroll,\nand `\"absolute\"` when tooltips need to be positioned within scrollable containers.\n\n- absolute\n- fixed",
2881
+ "type": "string",
2882
+ "values": [
2883
+ {
2884
+ "name": "absolute"
2885
+ },
2886
+ {
2887
+ "name": "fixed",
2888
+ "description": "(default)"
2889
+ }
2890
+ ]
2891
+ }
2892
+ ]
2893
+ },
2894
+ {
2895
+ "name": "rarui-dropdown-item",
2896
+ "description": "## Rarui Dropdown Item\n---\nAn suspended menu displays a list of options on a temporary surface.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/dropdown) for more details.",
2897
+ "attributes": [
2898
+ {
2899
+ "name": "selected",
2900
+ "default": false,
2901
+ "description": "Indicates if the item is selected.\nThis affects the visual style, such as highlight or marking.",
2902
+ "type": "boolean"
2903
+ },
2904
+ {
2905
+ "name": "name",
2906
+ "description": "The name of the dropdown item. This is typically the text that is displayed for the item.",
2907
+ "type": "string"
2908
+ }
2909
+ ]
2910
+ },
2694
2911
  {
2695
2912
  "name": "rarui-icon-button",
2696
2913
  "description": "## Rarui Icon Button\n---\nButton allows the user to perform actions, such as sending a file, advancing a form, sharing a document, or making a comment.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/input/button) for more details.",
@@ -6969,6 +7186,114 @@
6969
7186
  "type": "string"
6970
7187
  }
6971
7188
  ]
7189
+ },
7190
+ {
7191
+ "name": "rarui-modal",
7192
+ "description": "## Rarui Modal\n---\nThe modal component provides a base for popovers, suspended forms, tutorials, or any other content above the UI main surface.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/modal) for more details.",
7193
+ "attributes": [
7194
+ {
7195
+ "name": "padding",
7196
+ "default": "base",
7197
+ "description": "Padding properties are used to generate space around the content area of an Accordion.Body..\n\n- base\n- none",
7198
+ "type": "string",
7199
+ "values": [
7200
+ {
7201
+ "name": "base",
7202
+ "description": "(default)"
7203
+ },
7204
+ {
7205
+ "name": "none"
7206
+ }
7207
+ ]
7208
+ },
7209
+ {
7210
+ "name": "max-width",
7211
+ "description": "The **`max-width`** CSS property sets the maximum width of an element. It prevents the used value of the `width` property from becoming larger than the value specified by `max-width`. It is also possible to pass a specific value.\n\n\n**Initial value**: `none`\n\nThis property supports responsive values. You can pass a single value like `\"fit-content\"`.\n\n Or an object like:\n \n ```\n{\n \"xs\": \"fit-content\",\n \"md\": \"intrinsic\",\n \"lg\": \"max-content\",\n \"xl\": \"min-content\"\n}\n```\n\n- fit-content\n- intrinsic\n- max-content\n- min-content\n- none\n- stretch",
7212
+ "values": [
7213
+ {
7214
+ "name": "fit-content"
7215
+ },
7216
+ {
7217
+ "name": "intrinsic"
7218
+ },
7219
+ {
7220
+ "name": "max-content"
7221
+ },
7222
+ {
7223
+ "name": "min-content"
7224
+ },
7225
+ {
7226
+ "name": "none"
7227
+ },
7228
+ {
7229
+ "name": "stretch"
7230
+ }
7231
+ ]
7232
+ },
7233
+ {
7234
+ "name": "open",
7235
+ "description": "Whether the modal is open or not.",
7236
+ "type": "boolean"
7237
+ },
7238
+ {
7239
+ "name": "portal-id",
7240
+ "description": "Specifies the ID of the portal element where the modal should be rendered.\nThis can be useful for rendering the modal in a different part of the DOM, such as a modal or overlay.",
7241
+ "type": "string"
7242
+ },
7243
+ {
7244
+ "name": "z-index",
7245
+ "description": "The zIndex property specifies the stack order of the box.\n\nThis property supports responsive values. You can pass a single value like `\"$100\"`.\n\n Or an object like:\n \n ```\n{\n \"xs\": \"$100\",\n \"md\": \"$200\",\n \"lg\": \"$300\",\n \"xl\": \"$400\"\n}\n```\n\n- $100\n- $200\n- $300\n- $400\n- $500\n- $600\n- $700\n- $800\n- $900",
7246
+ "values": [
7247
+ {
7248
+ "name": "$100"
7249
+ },
7250
+ {
7251
+ "name": "$200"
7252
+ },
7253
+ {
7254
+ "name": "$300"
7255
+ },
7256
+ {
7257
+ "name": "$400"
7258
+ },
7259
+ {
7260
+ "name": "$500"
7261
+ },
7262
+ {
7263
+ "name": "$600"
7264
+ },
7265
+ {
7266
+ "name": "$700"
7267
+ },
7268
+ {
7269
+ "name": "$800"
7270
+ },
7271
+ {
7272
+ "name": "$900"
7273
+ }
7274
+ ]
7275
+ }
7276
+ ]
7277
+ },
7278
+ {
7279
+ "name": "rarui-modal-footer",
7280
+ "description": "## Rarui Modal Footer\n---\nThe modal component provides a base for popovers, suspended forms, tutorials, or any other content above the UI main surface.\n\nSee [a complete document](https://rarui.rarolabs.com.br/docs/components-web-components/surface/modal) for more details.",
7281
+ "attributes": []
7282
+ },
7283
+ {
7284
+ "name": "rarui-modal-header",
7285
+ "attributes": [
7286
+ {
7287
+ "name": "title",
7288
+ "description": "The title to display in the Modal header.",
7289
+ "type": "string"
7290
+ },
7291
+ {
7292
+ "name": "subtitle",
7293
+ "description": "The subtitle to display in the Modal header.",
7294
+ "type": "string"
7295
+ }
7296
+ ]
6972
7297
  }
6973
7298
  ]
6974
7299
  }