allaw-ui 4.9.7 → 4.9.9

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.
@@ -58,7 +58,7 @@
58
58
 
59
59
  .section-title {
60
60
  font-family: var(--font-poppins, "Poppins", "Helvetica Neue", Arial, sans-serif);
61
- font-size: 20px;
61
+ font-size: 19px;
62
62
  font-weight: 600;
63
63
  color: var(--primary-mid-black, #171E25);
64
64
  margin: 0;
@@ -70,7 +70,7 @@
70
70
 
71
71
  .section-number-badge {
72
72
  display: flex;
73
- align-items: center;
73
+ align-items: baseline;
74
74
  justify-content: center;
75
75
  flex-shrink: 0;
76
76
  }
@@ -111,7 +111,6 @@
111
111
  transition: all 0.2s ease;
112
112
  box-shadow: 0 2px 4px rgba(37, 190, 235, 0.1);
113
113
  white-space: nowrap;
114
- min-width: 120px;
115
114
  flex: 1;
116
115
  }
117
116
 
@@ -132,13 +131,12 @@
132
131
  color: white;
133
132
  border: 1px solid var(--primary-blue, #25BEEB);
134
133
  box-shadow: 0 2px 4px rgba(37, 190, 235, 0.2);
135
- min-width: 120px;
134
+ height: 34px;
136
135
  flex: 1;
137
136
  }
138
137
 
139
138
  .section-action-secondary {
140
139
  border: 1px solid var(--primary-blue, #25BEEB);
141
- min-width: 120px;
142
140
  height: 34px;
143
141
  flex: 1;
144
142
  }
@@ -11,10 +11,7 @@ var Section = function (_a) {
11
11
  React.createElement("div", { className: "section-title-container" },
12
12
  React.createElement("h3", { className: "section-title" }, title),
13
13
  number !== undefined && (React.createElement("div", { className: "section-number-badge" },
14
- React.createElement("span", { className: "section-number" },
15
- "(",
16
- number,
17
- ")"))))),
14
+ React.createElement("span", { className: "section-number" }, number))))),
18
15
  actions.length > 0 && (React.createElement("div", { className: "section-actions" }, actions.map(function (action, index) { return (React.createElement("button", { key: index, className: "section-action-button ".concat(action.variant === "primary" ? "section-action-primary" : "section-action-secondary", " ").concat(action.disabled ? "section-action-disabled" : ""), onClick: action.onClick, disabled: action.disabled },
19
16
  action.icon && React.createElement("span", { className: "section-action-icon" }, action.icon),
20
17
  React.createElement("span", { className: "section-action-label" }, action.label))); })))),
package/dist/index.d.ts CHANGED
@@ -133,3 +133,5 @@ export { default as AiText } from "./components/molecules/AiText/aiText";
133
133
  export type { AiTextProps } from "./components/molecules/AiText/aiText";
134
134
  export { default as Notification } from "./components/molecules/notification/Notification";
135
135
  export type { NotificationProps } from "./components/molecules/notification/Notification";
136
+ export { default as Section } from "./components/molecules/section/Section";
137
+ export type { SectionProps, SectionAction } from "./components/molecules/section/Section";
package/dist/index.js CHANGED
@@ -127,3 +127,5 @@ export { default as EmptyMessage } from "./components/molecules/emptyMessage/Emp
127
127
  export { default as AiText } from "./components/molecules/AiText/aiText";
128
128
  // Notification
129
129
  export { default as Notification } from "./components/molecules/notification/Notification";
130
+ // Section
131
+ export { default as Section } from "./components/molecules/section/Section";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "4.9.7",
3
+ "version": "4.9.9",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",