@almadar/std 14.0.0 → 14.0.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "std-drawer",
3
- "version": "2.1.0",
4
- "description": "std-drawer — side-panel atom. Renders ONLY to its `drawer` slot. Host emits OPEN with payload {id, name, description} → renders side-panel; CLOSE clears it. Stateless: state lives in the OPEN payload, not the entity, so the trait stays safe under consumer entity rebinds.",
3
+ "version": "2.2.0",
4
+ "description": "std-drawer — drawer-slot atom. Renders ONLY to its `drawer` slot. The runtime's slot wrapper provides the backdrop + right-anchored panel + close-X chrome; the atom emits ONLY the panel body content. Host emits OPEN with payload {id, name, description} → renders body; CLOSE clears the slot. Stateless: state lives in the OPEN payload, not the entity, so the trait stays safe under consumer entity rebinds.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "DrawerContentOrbital",
@@ -75,46 +75,36 @@
75
75
  "render-ui",
76
76
  "drawer",
77
77
  {
78
- "isOpen": true,
79
- "position": "@config.position",
80
- "onClose": "CLOSE",
81
- "type": "side-panel",
82
- "width": "@config.width",
83
78
  "children": [
84
79
  {
85
- "gap": "md",
86
- "direction": "vertical",
80
+ "variant": "h4",
81
+ "type": "typography",
82
+ "content": "@payload.name"
83
+ },
84
+ {
85
+ "color": "muted",
86
+ "type": "typography",
87
+ "content": "@payload.description",
88
+ "variant": "body"
89
+ },
90
+ {
87
91
  "children": [
88
92
  {
89
- "variant": "h4",
90
- "type": "typography",
91
- "content": "@payload.name"
92
- },
93
- {
94
- "color": "muted",
95
- "variant": "body",
96
- "content": "@payload.description",
97
- "type": "typography"
98
- },
99
- {
100
- "direction": "horizontal",
101
- "justify": "end",
102
- "type": "stack",
103
- "children": [
104
- {
105
- "type": "button",
106
- "action": "CLOSE",
107
- "variant": "ghost",
108
- "label": "Close"
109
- }
110
- ],
111
- "gap": "sm"
93
+ "action": "CLOSE",
94
+ "label": "Close",
95
+ "type": "button",
96
+ "variant": "ghost"
112
97
  }
113
98
  ],
99
+ "direction": "horizontal",
100
+ "gap": "sm",
101
+ "justify": "end",
114
102
  "type": "stack"
115
103
  }
116
104
  ],
117
- "title": "@config.title"
105
+ "direction": "vertical",
106
+ "gap": "md",
107
+ "type": "stack"
118
108
  }
119
109
  ]
120
110
  ]
@@ -133,30 +123,6 @@
133
123
  }
134
124
  ]
135
125
  },
136
- "config": {
137
- "title": {
138
- "type": "string",
139
- "default": "Details"
140
- },
141
- "width": {
142
- "type": "string",
143
- "default": "md",
144
- "values": [
145
- "sm",
146
- "md",
147
- "lg",
148
- "xl"
149
- ]
150
- },
151
- "position": {
152
- "type": "string",
153
- "default": "right",
154
- "values": [
155
- "left",
156
- "right"
157
- ]
158
- }
159
- },
160
126
  "scope": "instance"
161
127
  }
162
128
  ],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-drawer",
3
- "version": "2.1.0",
4
- "description": "std-drawer — side-panel atom. Renders ONLY to its `drawer` slot. Host emits OPEN with payload {id, name, description} → renders side-panel; CLOSE clears it. Stateless: state lives in the OPEN payload, not the entity, so the trait stays safe under consumer entity rebinds.",
3
+ "version": "2.2.0",
4
+ "description": "std-drawer — drawer-slot atom. Renders ONLY to its `drawer` slot. The runtime's slot wrapper provides the backdrop + right-anchored panel + close-X chrome; the atom emits ONLY the panel body content. Host emits OPEN with payload {id, name, description} → renders body; CLOSE clears the slot. Stateless: state lives in the OPEN payload, not the entity, so the trait stays safe under consumer entity rebinds.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "DrawerContentOrbital",
@@ -75,46 +75,36 @@
75
75
  "render-ui",
76
76
  "drawer",
77
77
  {
78
- "isOpen": true,
79
- "position": "@config.position",
80
- "onClose": "CLOSE",
81
- "type": "side-panel",
82
- "width": "@config.width",
83
78
  "children": [
84
79
  {
85
- "gap": "md",
86
- "direction": "vertical",
80
+ "variant": "h4",
81
+ "type": "typography",
82
+ "content": "@payload.name"
83
+ },
84
+ {
85
+ "color": "muted",
86
+ "type": "typography",
87
+ "content": "@payload.description",
88
+ "variant": "body"
89
+ },
90
+ {
87
91
  "children": [
88
92
  {
89
- "variant": "h4",
90
- "type": "typography",
91
- "content": "@payload.name"
92
- },
93
- {
94
- "color": "muted",
95
- "variant": "body",
96
- "content": "@payload.description",
97
- "type": "typography"
98
- },
99
- {
100
- "direction": "horizontal",
101
- "justify": "end",
102
- "type": "stack",
103
- "children": [
104
- {
105
- "type": "button",
106
- "action": "CLOSE",
107
- "variant": "ghost",
108
- "label": "Close"
109
- }
110
- ],
111
- "gap": "sm"
93
+ "action": "CLOSE",
94
+ "label": "Close",
95
+ "type": "button",
96
+ "variant": "ghost"
112
97
  }
113
98
  ],
99
+ "direction": "horizontal",
100
+ "gap": "sm",
101
+ "justify": "end",
114
102
  "type": "stack"
115
103
  }
116
104
  ],
117
- "title": "@config.title"
105
+ "direction": "vertical",
106
+ "gap": "md",
107
+ "type": "stack"
118
108
  }
119
109
  ]
120
110
  ]
@@ -133,30 +123,6 @@
133
123
  }
134
124
  ]
135
125
  },
136
- "config": {
137
- "title": {
138
- "type": "string",
139
- "default": "Details"
140
- },
141
- "width": {
142
- "type": "string",
143
- "default": "md",
144
- "values": [
145
- "sm",
146
- "md",
147
- "lg",
148
- "xl"
149
- ]
150
- },
151
- "position": {
152
- "type": "string",
153
- "default": "right",
154
- "values": [
155
- "left",
156
- "right"
157
- ]
158
- }
159
- },
160
126
  "scope": "instance"
161
127
  }
162
128
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",