@quidgest/ui 0.16.42 → 0.16.43

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.16.42",
2
+ "version": "0.16.43",
3
3
  "components": [
4
4
  {
5
5
  "name": "QAccordion",
@@ -2916,6 +2916,28 @@
2916
2916
  "description": "If true, applies inset margin.",
2917
2917
  "required": false,
2918
2918
  "category": "Presentation"
2919
+ },
2920
+ {
2921
+ "name": "thickness",
2922
+ "type": {
2923
+ "kind": "primitive",
2924
+ "name": "number"
2925
+ },
2926
+ "description": "The thickness of the divider line in pixels.",
2927
+ "default": "1",
2928
+ "required": false,
2929
+ "category": "Presentation"
2930
+ },
2931
+ {
2932
+ "name": "color",
2933
+ "type": {
2934
+ "kind": "primitive",
2935
+ "name": "string"
2936
+ },
2937
+ "description": "The color of the divider line.\nCan be chosen from utility colors like 'success' or 'danger',\nor specified using CSS color codes.",
2938
+ "default": "neutral",
2939
+ "required": false,
2940
+ "category": "Presentation"
2919
2941
  }
2920
2942
  ],
2921
2943
  "events": [],
@@ -2946,6 +2968,16 @@
2946
2968
  "title": "Vertical",
2947
2969
  "description": "A vertical divider used to split side-by-side elements.",
2948
2970
  "code": "<div style=\"display: flex; height: 1rem;\">\n <div>Left</div>\n <QDivider direction=\"vertical\" />\n <div>Right</div>\n </div>"
2971
+ },
2972
+ {
2973
+ "title": "Thicker",
2974
+ "description": "A horizontal divider with a bigger thickness.",
2975
+ "code": "<div>\n <p>Section above</p>\n <QDivider :thickness=\"5\" />\n <p>Section below</p>\n </div>"
2976
+ },
2977
+ {
2978
+ "title": "Colored",
2979
+ "description": "A horizontal divider with a primary color.",
2980
+ "code": "<div>\n <p>Section above</p>\n <QDivider color=\"primary\" />\n <p>Section below</p>\n </div>"
2949
2981
  }
2950
2982
  ]
2951
2983
  },
package/dist/ui.css CHANGED
@@ -2981,45 +2981,45 @@ body *::-webkit-scrollbar-track {
2981
2981
  }
2982
2982
 
2983
2983
  .q-divider {
2984
+ --q-divider-thickness: 1px;
2985
+ --q-divider-color: var(--q-theme-neutral);
2984
2986
  display: flex;
2985
2987
  align-items: center;
2986
2988
  justify-content: center;
2987
2989
  position: relative;
2988
- color: var(--q-theme-neutral);
2990
+ color: var(--q-divider-color);
2989
2991
  font-size: 0.875rem;
2992
+ /* Horizontal */
2993
+ /* Labeled horizontal: lines + label */
2994
+ /* Inset margin */
2995
+ /* Vertical */
2996
+ /* Labeled vertical: lines + label */
2997
+ /* Inset for vertical (optional – if used) */
2990
2998
  }
2991
-
2992
- /* Horizontal */
2993
2999
  .q-divider--horizontal {
2994
3000
  width: 100%;
2995
3001
  flex-direction: row;
2996
3002
  margin: 8px 0;
2997
3003
  }
2998
-
2999
3004
  .q-divider--horizontal:not(.q-divider--labeled)::before {
3000
3005
  content: "";
3001
3006
  flex: 1;
3002
- border-top-width: 1px;
3007
+ border-top-width: var(--q-divider-thickness);
3008
+ border-color: var(--q-divider-color);
3003
3009
  }
3004
-
3005
- /* Labeled horizontal: lines + label */
3006
3010
  .q-divider--horizontal.q-divider--labeled .q-divider__line {
3007
3011
  flex: 1;
3008
- border-top-width: 1px;
3012
+ border-top-width: var(--q-divider-thickness);
3013
+ border-color: var(--q-divider-color);
3009
3014
  }
3010
-
3011
3015
  .q-divider--horizontal.q-divider--labeled .q-divider__label {
3012
3016
  padding: 0 12px;
3013
3017
  white-space: nowrap;
3014
3018
  }
3015
-
3016
- /* Inset margin */
3017
3019
  .q-divider--horizontal.q-divider--inset {
3018
3020
  max-width: calc(100% - 72px);
3019
3021
  margin-inline-start: 72px;
3020
3022
  }
3021
-
3022
- /* Vertical */
3023
3023
  .q-divider--vertical {
3024
3024
  display: flex;
3025
3025
  flex-direction: column;
@@ -3028,27 +3028,23 @@ body *::-webkit-scrollbar-track {
3028
3028
  min-height: 100%;
3029
3029
  margin: 0 8px;
3030
3030
  }
3031
-
3032
3031
  .q-divider--vertical:not(.q-divider--labeled)::before {
3033
3032
  content: "";
3034
3033
  flex: 1;
3035
- border-left-width: 1px;
3034
+ border-left-width: var(--q-divider-thickness);
3035
+ border-color: var(--q-divider-color);
3036
3036
  }
3037
-
3038
- /* Labeled vertical: lines + label */
3039
3037
  .q-divider--vertical.q-divider--labeled .q-divider__line {
3040
- border-left-width: 1px;
3038
+ border-left-width: var(--q-divider-thickness);
3039
+ border-color: var(--q-divider-color);
3041
3040
  height: 100%;
3042
3041
  }
3043
-
3044
3042
  .q-divider--vertical.q-divider--labeled .q-divider__label {
3045
3043
  writing-mode: vertical-rl;
3046
3044
  text-orientation: mixed;
3047
3045
  padding: 12px 0;
3048
3046
  white-space: nowrap;
3049
3047
  }
3050
-
3051
- /* Inset for vertical (optional – if used) */
3052
3048
  .q-divider--vertical.q-divider--inset {
3053
3049
  margin-bottom: 8px;
3054
3050
  margin-top: 8px;