@netlisian/softconfig 0.0.2 → 0.0.4

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,19 +1,20 @@
1
- /* src/puck/components/error-boundary/styles.module.css */
2
- .ErrorBoundary {
1
+ /* css-module:D:osamuProjects
2
+ etlisianpackagessoft-configsrcpuckcomponentserror-boundarystyles.module.css\#css-module-data */
3
+ ._ErrorBoundary_1xl05_5 {
3
4
  padding: 20px;
4
5
  border: 1px solid #ff5858;
5
6
  border-radius: 4px;
6
7
  background-color: #fff0f0;
7
8
  margin: 10px 0;
8
9
  }
9
- .ErrorBoundary-title {
10
+ ._ErrorBoundary-title_1xl05_21 {
10
11
  color: #d32f2f;
11
12
  margin: 0 0 10px 0;
12
13
  }
13
- .ErrorBoundary-details {
14
+ ._ErrorBoundary-details_1xl05_31 {
14
15
  white-space: pre-wrap;
15
16
  }
16
- .ErrorBoundary-button {
17
+ ._ErrorBoundary-button_1xl05_39 {
17
18
  margin-top: 10px;
18
19
  padding: 5px 10px;
19
20
  background-color: #d32f2f;
@@ -22,12 +23,13 @@
22
23
  border-radius: 4px;
23
24
  cursor: pointer;
24
25
  }
25
- .ErrorBoundary-button:hover {
26
+ ._ErrorBoundary-button_1xl05_39:hover {
26
27
  background-color: #b71c1c;
27
28
  }
28
29
 
29
- /* src/puck/overrides/Header.module.css */
30
- .Header {
30
+ /* css-module:D:osamuProjects
31
+ etlisianpackagessoft-configsrcpuckoverridesHeader.module.css\#css-module-data */
32
+ ._Header_19oj9_1 {
31
33
  display: flex;
32
34
  justify-content: space-between;
33
35
  align-items: center;
@@ -35,8 +37,9 @@
35
37
  flex-wrap: wrap;
36
38
  }
37
39
 
38
- /* src/puck/overrides/ActionBar.module.css */
39
- .ActionBar {
40
+ /* css-module:D:osamuProjects
41
+ etlisianpackagessoft-configsrcpuckoverridesActionBar.module.css\#css-module-data */
42
+ ._ActionBar_pvuie_5 {
40
43
  align-items: center;
41
44
  cursor: default;
42
45
  display: flex;
@@ -52,7 +55,7 @@
52
55
  font-family: var(--puck-font-family);
53
56
  min-height: 26px;
54
57
  }
55
- .ActionBar-label {
58
+ ._ActionBar-label_pvuie_39 {
56
59
  color: var(--puck-color-grey-08);
57
60
  font-size: var(--puck-font-size-xxxs);
58
61
  font-weight: 500;
@@ -63,13 +66,13 @@
63
66
  text-overflow: ellipsis;
64
67
  white-space: nowrap;
65
68
  }
66
- .ActionBar-action + .ActionBar-label {
69
+ ._ActionBar-action_pvuie_63 + ._ActionBar-label_pvuie_39 {
67
70
  padding-inline-start: 0;
68
71
  }
69
- .ActionBar-label + .ActionBar-action {
72
+ ._ActionBar-label_pvuie_39 + ._ActionBar-action_pvuie_63 {
70
73
  margin-inline-start: -4px;
71
74
  }
72
- .ActionBar-group {
75
+ ._ActionBar-group_pvuie_79 {
73
76
  align-items: center;
74
77
  border-inline-start: 0.5px solid var(--puck-color-grey-05);
75
78
  display: flex;
@@ -77,13 +80,13 @@
77
80
  padding-inline-start: 4px;
78
81
  padding-inline-end: 4px;
79
82
  }
80
- .ActionBar-group:first-of-type {
83
+ ._ActionBar-group_pvuie_79:first-of-type {
81
84
  border-inline-start: 0;
82
85
  }
83
- .ActionBar-group:empty {
86
+ ._ActionBar-group_pvuie_79:empty {
84
87
  display: none;
85
88
  }
86
- .ActionBar-action {
89
+ ._ActionBar-action_pvuie_63 {
87
90
  background: transparent;
88
91
  border: none;
89
92
  color: var(--puck-color-grey-08);
@@ -98,29 +101,30 @@
98
101
  justify-content: center;
99
102
  transition: color 50ms ease-in;
100
103
  }
101
- .ActionBar-action svg {
104
+ ._ActionBar-action_pvuie_63 svg {
102
105
  max-width: none !important;
103
106
  }
104
- .ActionBar-action:focus-visible {
107
+ ._ActionBar-action_pvuie_63:focus-visible {
105
108
  outline: 2px solid var(--puck-color-azure-05);
106
109
  outline-offset: -2px;
107
110
  }
108
111
  @media (hover: hover) and (pointer: fine) {
109
- .ActionBar-action:hover {
112
+ ._ActionBar-action_pvuie_63:hover {
110
113
  color: var(--puck-color-azure-06);
111
114
  transition: none;
112
115
  }
113
116
  }
114
- .ActionBar-action:active {
117
+ ._ActionBar-action_pvuie_63:active {
115
118
  color: var(--puck-color-azure-07);
116
119
  transition: none;
117
120
  }
118
- .ActionBar-group * {
121
+ ._ActionBar-group_pvuie_79 * {
119
122
  margin: 0;
120
123
  }
121
124
 
122
- /* src/puck/overrides/ComponentItem.module.css */
123
- .ComponentItem {
125
+ /* css-module:D:osamuProjects
126
+ etlisianpackagessoft-configsrcpuckoverridesComponentItem.module.css\#css-module-data */
127
+ ._ComponentItem_lp9eh_1 {
124
128
  background: var(--puck-color-white);
125
129
  cursor: grab;
126
130
  border: 1px solid var(--puck-color-grey-09);
@@ -132,7 +136,7 @@
132
136
  transition: background-color 50ms ease-in, color 50ms ease-in;
133
137
  display: flex;
134
138
  }
135
- .ComponentItem-content {
139
+ ._ComponentItem-content_lp9eh_14 {
136
140
  flex: 1;
137
141
  display: flex;
138
142
  flex-direction: column;
@@ -141,53 +145,53 @@
141
145
  white-space: nowrap;
142
146
  overflow-x: hidden;
143
147
  }
144
- .ComponentItem-name {
148
+ ._ComponentItem-name_lp9eh_24 {
145
149
  font-weight: 500;
146
150
  }
147
- .ComponentItem-version {
151
+ ._ComponentItem-version_lp9eh_28 {
148
152
  font-size: 10px;
149
153
  color: var(--puck-color-grey-05);
150
154
  }
151
- .ComponentItem-actions {
155
+ ._ComponentItem-actions_lp9eh_33 {
152
156
  display: flex;
153
157
  align-items: center;
154
158
  gap: 8px;
155
159
  }
156
- .ComponentItem-settingsButton {
160
+ ._ComponentItem-settingsButton_lp9eh_39 {
157
161
  opacity: 0;
158
162
  transition: opacity 120ms ease;
159
163
  color: var(--puck-color-grey-05);
160
164
  }
161
- .ComponentItem:hover .ComponentItem-settingsButton {
165
+ ._ComponentItem_lp9eh_1:hover ._ComponentItem-settingsButton_lp9eh_39 {
162
166
  opacity: 1;
163
167
  }
164
- .ComponentItem-grip {
168
+ ._ComponentItem-grip_lp9eh_49 {
165
169
  color: var(--puck-color-grey-05);
166
170
  display: flex;
167
171
  align-items: center;
168
172
  }
169
- .ComponentItem-modal {
173
+ ._ComponentItem-modal_lp9eh_56 {
170
174
  background: var(--puck-color-white);
171
175
  display: flex;
172
176
  flex-direction: column;
173
177
  height: 100%;
174
178
  }
175
- .ComponentItem-modalHeader {
179
+ ._ComponentItem-modalHeader_lp9eh_63 {
176
180
  padding: 24px 32px;
177
181
  border-bottom: 1px solid var(--puck-color-grey-09);
178
182
  }
179
- .ComponentItem-modalTitle {
183
+ ._ComponentItem-modalTitle_lp9eh_68 {
180
184
  margin: 0 0 4px 0;
181
185
  font-size: 24px;
182
186
  font-weight: 600;
183
187
  color: var(--puck-color-black);
184
188
  }
185
- .ComponentItem-modalSubtitle {
189
+ ._ComponentItem-modalSubtitle_lp9eh_75 {
186
190
  margin: 0;
187
191
  font-size: 14px;
188
192
  color: var(--puck-color-grey-04);
189
193
  }
190
- .ComponentItem-modalBody {
194
+ ._ComponentItem-modalBody_lp9eh_81 {
191
195
  flex: 1;
192
196
  padding: 32px;
193
197
  overflow-y: auto;
@@ -195,28 +199,28 @@
195
199
  flex-direction: column;
196
200
  gap: 32px;
197
201
  }
198
- .ComponentItem-section {
202
+ ._ComponentItem-section_lp9eh_90 {
199
203
  display: flex;
200
204
  flex-direction: column;
201
205
  gap: 16px;
202
206
  }
203
- .ComponentItem-sectionTitle {
207
+ ._ComponentItem-sectionTitle_lp9eh_96 {
204
208
  margin: 0;
205
209
  font-size: 16px;
206
210
  font-weight: 600;
207
211
  color: var(--puck-color-black);
208
212
  }
209
- .ComponentItem-sectionDescription {
213
+ ._ComponentItem-sectionDescription_lp9eh_103 {
210
214
  margin: 0;
211
215
  font-size: 14px;
212
216
  color: var(--puck-color-grey-04);
213
217
  }
214
- .ComponentItem-versionList {
218
+ ._ComponentItem-versionList_lp9eh_109 {
215
219
  display: flex;
216
220
  flex-direction: column;
217
221
  gap: 8px;
218
222
  }
219
- .ComponentItem-versionRow {
223
+ ._ComponentItem-versionRow_lp9eh_115 {
220
224
  display: flex;
221
225
  justify-content: space-between;
222
226
  align-items: center;
@@ -226,26 +230,26 @@
226
230
  background: var(--puck-color-white);
227
231
  transition: all 150ms ease;
228
232
  }
229
- .ComponentItem-versionRow--isDefault {
233
+ ._ComponentItem-versionRow--isDefault_lp9eh_126 {
230
234
  border-color: var(--puck-color-azure-07);
231
235
  background: var(--puck-color-azure-10);
232
236
  }
233
- .ComponentItem-versionRow--isMarkedForDeletion {
237
+ ._ComponentItem-versionRow--isMarkedForDeletion_lp9eh_131 {
234
238
  opacity: 0.6;
235
239
  background: var(--puck-color-grey-11);
236
240
  }
237
- .ComponentItem-versionInfo {
241
+ ._ComponentItem-versionInfo_lp9eh_136 {
238
242
  display: flex;
239
243
  align-items: center;
240
244
  gap: 12px;
241
245
  flex: 1;
242
246
  }
243
- .ComponentItem-versionNumber {
247
+ ._ComponentItem-versionNumber_lp9eh_143 {
244
248
  font-size: 14px;
245
249
  font-weight: 500;
246
250
  color: var(--puck-color-black);
247
251
  }
248
- .ComponentItem-defaultBadge {
252
+ ._ComponentItem-defaultBadge_lp9eh_149 {
249
253
  font-size: 11px;
250
254
  padding: 3px 8px;
251
255
  border-radius: 4px;
@@ -255,7 +259,7 @@
255
259
  text-transform: uppercase;
256
260
  letter-spacing: 0.5px;
257
261
  }
258
- .ComponentItem-deleteBadge {
262
+ ._ComponentItem-deleteBadge_lp9eh_160 {
259
263
  font-size: 11px;
260
264
  padding: 3px 8px;
261
265
  border-radius: 4px;
@@ -265,15 +269,15 @@
265
269
  text-transform: uppercase;
266
270
  letter-spacing: 0.5px;
267
271
  }
268
- .ComponentItem-versionActions {
272
+ ._ComponentItem-versionActions_lp9eh_171 {
269
273
  display: flex;
270
274
  gap: 8px;
271
275
  align-items: center;
272
276
  }
273
- .ComponentItem-migrationOptions {
277
+ ._ComponentItem-migrationOptions_lp9eh_177 {
274
278
  width: 100%;
275
279
  }
276
- .ComponentItem-select {
280
+ ._ComponentItem-select_lp9eh_181 {
277
281
  width: 100%;
278
282
  padding: 10px 12px;
279
283
  border: 1px solid var(--puck-color-grey-09);
@@ -284,14 +288,14 @@
284
288
  cursor: pointer;
285
289
  transition: border-color 150ms ease;
286
290
  }
287
- .ComponentItem-select:hover {
291
+ ._ComponentItem-select_lp9eh_181:hover {
288
292
  border-color: var(--puck-color-grey-07);
289
293
  }
290
- .ComponentItem-select:focus {
294
+ ._ComponentItem-select_lp9eh_181:focus {
291
295
  outline: none;
292
296
  border-color: var(--puck-color-azure-07);
293
297
  }
294
- .ComponentItem-modalFooter {
298
+ ._ComponentItem-modalFooter_lp9eh_202 {
295
299
  padding: 20px 32px;
296
300
  border-top: 1px solid var(--puck-color-grey-09);
297
301
  display: flex;
@@ -299,17 +303,18 @@
299
303
  align-items: center;
300
304
  background: var(--puck-color-grey-11);
301
305
  }
302
- .ComponentItem-footerLeft {
306
+ ._ComponentItem-footerLeft_lp9eh_211 {
303
307
  display: flex;
304
308
  gap: 12px;
305
309
  }
306
- .ComponentItem-footerRight {
310
+ ._ComponentItem-footerRight_lp9eh_216 {
307
311
  display: flex;
308
312
  gap: 12px;
309
313
  }
310
314
 
311
- /* src/puck/components/modal/styles.module.css */
312
- .Modal {
315
+ /* css-module:D:osamuProjects
316
+ etlisianpackagessoft-configsrcpuckcomponentsmodalstyles.module.css\#css-module-data */
317
+ ._Modal_pvj02_1 {
313
318
  background: color-mix(in srgb, var(--puck-color-black) 75%, transparent);
314
319
  display: none;
315
320
  justify-content: center;
@@ -322,10 +327,10 @@
322
327
  z-index: 1;
323
328
  padding: 32px;
324
329
  }
325
- .Modal--isOpen {
330
+ ._Modal--isOpen_pvj02_29 {
326
331
  display: flex;
327
332
  }
328
- .Modal-inner {
333
+ ._Modal-inner_pvj02_37 {
329
334
  width: 100%;
330
335
  max-width: 1024px;
331
336
  border-radius: 8px;
@@ -1,6 +1,6 @@
1
1
  import * as zustand from 'zustand';
2
2
  import { StoreApi } from 'zustand';
3
- import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Fields, Config, Data } from '@measured/puck';
3
+ import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Config, Fields, Data } from '@measured/puck';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, ReactElement } from 'react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -113,6 +113,7 @@ type BuilderComponentConfig = {
113
113
  }[];
114
114
  [key: string]: any;
115
115
  };
116
+ type BuilderConfig = Config<any, BuilderRootConfig>;
116
117
 
117
118
  type SoftSubComponent = {
118
119
  type: string;
@@ -343,4 +344,10 @@ declare const confirm: (message: string) => Promise<boolean>;
343
344
  */
344
345
  declare const resolveSoftConfig: (data: Data, softComponents: SoftComponents, config: Config) => Data;
345
346
 
346
- export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, ComponentItem, Header, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
347
+ declare const Modal: ({ children, onClose, isOpen, }: {
348
+ children: ReactNode;
349
+ onClose: () => void;
350
+ isOpen: boolean;
351
+ }) => react_jsx_runtime.JSX.Element;
352
+
353
+ export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, type BuilderComponentConfig, type BuilderConfig, type BuilderRootConfig, ComponentItem, Header, Modal, type Overrides, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
@@ -1,6 +1,6 @@
1
1
  import * as zustand from 'zustand';
2
2
  import { StoreApi } from 'zustand';
3
- import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Fields, Config, Data } from '@measured/puck';
3
+ import { History, AppState, PuckApi, ComponentConfig, ComponentData, DefaultComponentProps, Field, Config, Fields, Data } from '@measured/puck';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, ReactElement } from 'react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -113,6 +113,7 @@ type BuilderComponentConfig = {
113
113
  }[];
114
114
  [key: string]: any;
115
115
  };
116
+ type BuilderConfig = Config<any, BuilderRootConfig>;
116
117
 
117
118
  type SoftSubComponent = {
118
119
  type: string;
@@ -343,4 +344,10 @@ declare const confirm: (message: string) => Promise<boolean>;
343
344
  */
344
345
  declare const resolveSoftConfig: (data: Data, softComponents: SoftComponents, config: Config) => Data;
345
346
 
346
- export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, ComponentItem, Header, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
347
+ declare const Modal: ({ children, onClose, isOpen, }: {
348
+ children: ReactNode;
349
+ onClose: () => void;
350
+ isOpen: boolean;
351
+ }) => react_jsx_runtime.JSX.Element;
352
+
353
+ export { ActionBarOverride as ActionBar, type AppStore, type AppStoreApi, type BuilderComponentConfig, type BuilderConfig, type BuilderRootConfig, ComponentItem, Header, Modal, type Overrides, type SoftComponent, type SoftComponents, SoftConfigProvider, confirm, createSoftConfigStore, createUseSoftConfig, notify, resolveSoftConfig, setConfirmHandler, setNotificationHandler, useBuild, useCancel, useComplete, useDecompose, useDemolish, useInspect, useRemodel, useSetDefaultVersion, useSoftConfig };
@@ -83,6 +83,7 @@ __export(puck_exports, {
83
83
  ActionBar: () => ActionBarOverride,
84
84
  ComponentItem: () => ComponentItem,
85
85
  Header: () => Header,
86
+ Modal: () => Modal,
86
87
  SoftConfigProvider: () => SoftConfigProvider,
87
88
  confirm: () => confirm,
88
89
  createSoftConfigStore: () => createSoftConfigStore,
@@ -594,12 +595,12 @@ var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (op
594
595
  };
595
596
  var get_class_name_factory_default = getClassNameFactory;
596
597
 
597
- // src/puck/components/error-boundary/styles.module.css
598
- var styles_default = {};
598
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\components\error-boundary\styles.module.css#css-module
599
+ var styles_module_default = { "ErrorBoundary": "_ErrorBoundary_1xl05_5", "ErrorBoundary-title": "_ErrorBoundary-title_1xl05_21", "ErrorBoundary-details": "_ErrorBoundary-details_1xl05_31", "ErrorBoundary-button": "_ErrorBoundary-button_1xl05_39" };
599
600
 
600
601
  // src/puck/components/error-boundary/index.tsx
601
602
  var import_jsx_runtime3 = require("react/jsx-runtime");
602
- var getClassName = get_class_name_factory_default("ErrorBoundary", styles_default);
603
+ var getClassName = get_class_name_factory_default("ErrorBoundary", styles_module_default);
603
604
  var ErrorBoundary = class extends import_react3.Component {
604
605
  constructor(props) {
605
606
  super(props);
@@ -2232,8 +2233,8 @@ var useSetDefaultVersion = () => {
2232
2233
  // src/puck/overrides/Header.tsx
2233
2234
  var import_puck12 = require("@measured/puck");
2234
2235
 
2235
- // src/puck/overrides/Header.module.css
2236
- var Header_default = {};
2236
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\overrides\Header.module.css#css-module
2237
+ var Header_module_default = { "Header": "_Header_19oj9_1" };
2237
2238
 
2238
2239
  // src/puck/actions/usePublish.tsx
2239
2240
  var import_puck11 = require("@measured/puck");
@@ -2259,7 +2260,7 @@ var usePublish = () => {
2259
2260
 
2260
2261
  // src/puck/overrides/Header.tsx
2261
2262
  var import_jsx_runtime8 = require("react/jsx-runtime");
2262
- var getClassName2 = get_class_name_factory_default("Header", Header_default);
2263
+ var getClassName2 = get_class_name_factory_default("Header", Header_module_default);
2263
2264
  var Header = ({
2264
2265
  onPublish,
2265
2266
  children
@@ -2301,12 +2302,12 @@ var Header = ({
2301
2302
  var import_puck13 = require("@measured/puck");
2302
2303
  var import_lucide_react = require("lucide-react");
2303
2304
 
2304
- // src/puck/overrides/ActionBar.module.css
2305
- var ActionBar_default = {};
2305
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\overrides\ActionBar.module.css#css-module
2306
+ var ActionBar_module_default = { "ActionBar": "_ActionBar_pvuie_5", "ActionBar-label": "_ActionBar-label_pvuie_39", "ActionBar-action": "_ActionBar-action_pvuie_63", "ActionBar-group": "_ActionBar-group_pvuie_79" };
2306
2307
 
2307
2308
  // src/puck/overrides/ActionBar.tsx
2308
2309
  var import_jsx_runtime9 = require("react/jsx-runtime");
2309
- var getClassName3 = get_class_name_factory_default("ActionBar", ActionBar_default);
2310
+ var getClassName3 = get_class_name_factory_default("ActionBar", ActionBar_module_default);
2310
2311
  var ActionBarOverride = (props) => {
2311
2312
  const { handleBuild, canBuild } = useBuild();
2312
2313
  const { handleRemodel, canRemodel } = useRemodel();
@@ -2365,19 +2366,19 @@ var confirm = (message) => __async(null, null, function* () {
2365
2366
  }
2366
2367
  });
2367
2368
 
2368
- // src/puck/overrides/ComponentItem.module.css
2369
- var ComponentItem_default = {};
2369
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\overrides\ComponentItem.module.css#css-module
2370
+ var ComponentItem_module_default = { "ComponentItem": "_ComponentItem_lp9eh_1", "ComponentItem-content": "_ComponentItem-content_lp9eh_14", "ComponentItem-name": "_ComponentItem-name_lp9eh_24", "ComponentItem-version": "_ComponentItem-version_lp9eh_28", "ComponentItem-actions": "_ComponentItem-actions_lp9eh_33", "ComponentItem-settingsButton": "_ComponentItem-settingsButton_lp9eh_39", "ComponentItem-grip": "_ComponentItem-grip_lp9eh_49", "ComponentItem-modal": "_ComponentItem-modal_lp9eh_56", "ComponentItem-modalHeader": "_ComponentItem-modalHeader_lp9eh_63", "ComponentItem-modalTitle": "_ComponentItem-modalTitle_lp9eh_68", "ComponentItem-modalSubtitle": "_ComponentItem-modalSubtitle_lp9eh_75", "ComponentItem-modalBody": "_ComponentItem-modalBody_lp9eh_81", "ComponentItem-section": "_ComponentItem-section_lp9eh_90", "ComponentItem-sectionTitle": "_ComponentItem-sectionTitle_lp9eh_96", "ComponentItem-sectionDescription": "_ComponentItem-sectionDescription_lp9eh_103", "ComponentItem-versionList": "_ComponentItem-versionList_lp9eh_109", "ComponentItem-versionRow": "_ComponentItem-versionRow_lp9eh_115", "ComponentItem-versionRow--isDefault": "_ComponentItem-versionRow--isDefault_lp9eh_126", "ComponentItem-versionRow--isMarkedForDeletion": "_ComponentItem-versionRow--isMarkedForDeletion_lp9eh_131", "ComponentItem-versionInfo": "_ComponentItem-versionInfo_lp9eh_136", "ComponentItem-versionNumber": "_ComponentItem-versionNumber_lp9eh_143", "ComponentItem-defaultBadge": "_ComponentItem-defaultBadge_lp9eh_149", "ComponentItem-deleteBadge": "_ComponentItem-deleteBadge_lp9eh_160", "ComponentItem-versionActions": "_ComponentItem-versionActions_lp9eh_171", "ComponentItem-migrationOptions": "_ComponentItem-migrationOptions_lp9eh_177", "ComponentItem-select": "_ComponentItem-select_lp9eh_181", "ComponentItem-modalFooter": "_ComponentItem-modalFooter_lp9eh_202", "ComponentItem-footerLeft": "_ComponentItem-footerLeft_lp9eh_211", "ComponentItem-footerRight": "_ComponentItem-footerRight_lp9eh_216" };
2370
2371
 
2371
2372
  // src/puck/components/modal/index.tsx
2372
2373
  var import_react8 = require("react");
2373
2374
  var import_react_dom = require("react-dom");
2374
2375
 
2375
- // src/puck/components/modal/styles.module.css
2376
- var styles_default2 = {};
2376
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\components\modal\styles.module.css#css-module
2377
+ var styles_module_default2 = { "Modal": "_Modal_pvj02_1", "Modal--isOpen": "_Modal--isOpen_pvj02_29", "Modal-inner": "_Modal-inner_pvj02_37" };
2377
2378
 
2378
2379
  // src/puck/components/modal/index.tsx
2379
2380
  var import_jsx_runtime10 = require("react/jsx-runtime");
2380
- var getClassName4 = get_class_name_factory_default("Modal", styles_default2);
2381
+ var getClassName4 = get_class_name_factory_default("Modal", styles_module_default2);
2381
2382
  var Modal = ({
2382
2383
  children,
2383
2384
  onClose,
@@ -2405,7 +2406,7 @@ var Modal = ({
2405
2406
 
2406
2407
  // src/puck/overrides/ComponentItem.tsx
2407
2408
  var import_jsx_runtime11 = require("react/jsx-runtime");
2408
- var getClassName5 = get_class_name_factory_default("ComponentItem", ComponentItem_default);
2409
+ var getClassName5 = get_class_name_factory_default("ComponentItem", ComponentItem_module_default);
2409
2410
  var ComponentItem = (props) => {
2410
2411
  const softComponents = new Set(
2411
2412
  Object.keys(useSoftConfig((s) => s.softComponents))
@@ -2828,6 +2829,7 @@ var resolveSoftConfig = (data, softComponents, config) => {
2828
2829
  ActionBar,
2829
2830
  ComponentItem,
2830
2831
  Header,
2832
+ Modal,
2831
2833
  SoftConfigProvider,
2832
2834
  confirm,
2833
2835
  createSoftConfigStore,
@@ -545,12 +545,12 @@ var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (op
545
545
  };
546
546
  var get_class_name_factory_default = getClassNameFactory;
547
547
 
548
- // src/puck/components/error-boundary/styles.module.css
549
- var styles_default = {};
548
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\components\error-boundary\styles.module.css#css-module
549
+ var styles_module_default = { "ErrorBoundary": "_ErrorBoundary_1xl05_5", "ErrorBoundary-title": "_ErrorBoundary-title_1xl05_21", "ErrorBoundary-details": "_ErrorBoundary-details_1xl05_31", "ErrorBoundary-button": "_ErrorBoundary-button_1xl05_39" };
550
550
 
551
551
  // src/puck/components/error-boundary/index.tsx
552
552
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
553
- var getClassName = get_class_name_factory_default("ErrorBoundary", styles_default);
553
+ var getClassName = get_class_name_factory_default("ErrorBoundary", styles_module_default);
554
554
  var ErrorBoundary = class extends Component {
555
555
  constructor(props) {
556
556
  super(props);
@@ -2183,8 +2183,8 @@ var useSetDefaultVersion = () => {
2183
2183
  // src/puck/overrides/Header.tsx
2184
2184
  import { Button } from "@measured/puck";
2185
2185
 
2186
- // src/puck/overrides/Header.module.css
2187
- var Header_default = {};
2186
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\overrides\Header.module.css#css-module
2187
+ var Header_module_default = { "Header": "_Header_19oj9_1" };
2188
2188
 
2189
2189
  // src/puck/actions/usePublish.tsx
2190
2190
  import { createUsePuck as createUsePuck9 } from "@measured/puck";
@@ -2210,7 +2210,7 @@ var usePublish = () => {
2210
2210
 
2211
2211
  // src/puck/overrides/Header.tsx
2212
2212
  import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
2213
- var getClassName2 = get_class_name_factory_default("Header", Header_default);
2213
+ var getClassName2 = get_class_name_factory_default("Header", Header_module_default);
2214
2214
  var Header = ({
2215
2215
  onPublish,
2216
2216
  children
@@ -2252,12 +2252,12 @@ var Header = ({
2252
2252
  import { ActionBar } from "@measured/puck";
2253
2253
  import { Combine, ComponentIcon, EditIcon } from "lucide-react";
2254
2254
 
2255
- // src/puck/overrides/ActionBar.module.css
2256
- var ActionBar_default = {};
2255
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\overrides\ActionBar.module.css#css-module
2256
+ var ActionBar_module_default = { "ActionBar": "_ActionBar_pvuie_5", "ActionBar-label": "_ActionBar-label_pvuie_39", "ActionBar-action": "_ActionBar-action_pvuie_63", "ActionBar-group": "_ActionBar-group_pvuie_79" };
2257
2257
 
2258
2258
  // src/puck/overrides/ActionBar.tsx
2259
2259
  import { Fragment as Fragment4, jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
2260
- var getClassName3 = get_class_name_factory_default("ActionBar", ActionBar_default);
2260
+ var getClassName3 = get_class_name_factory_default("ActionBar", ActionBar_module_default);
2261
2261
  var ActionBarOverride = (props) => {
2262
2262
  const { handleBuild, canBuild } = useBuild();
2263
2263
  const { handleRemodel, canRemodel } = useRemodel();
@@ -2316,19 +2316,19 @@ var confirm = (message) => __async(null, null, function* () {
2316
2316
  }
2317
2317
  });
2318
2318
 
2319
- // src/puck/overrides/ComponentItem.module.css
2320
- var ComponentItem_default = {};
2319
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\overrides\ComponentItem.module.css#css-module
2320
+ var ComponentItem_module_default = { "ComponentItem": "_ComponentItem_lp9eh_1", "ComponentItem-content": "_ComponentItem-content_lp9eh_14", "ComponentItem-name": "_ComponentItem-name_lp9eh_24", "ComponentItem-version": "_ComponentItem-version_lp9eh_28", "ComponentItem-actions": "_ComponentItem-actions_lp9eh_33", "ComponentItem-settingsButton": "_ComponentItem-settingsButton_lp9eh_39", "ComponentItem-grip": "_ComponentItem-grip_lp9eh_49", "ComponentItem-modal": "_ComponentItem-modal_lp9eh_56", "ComponentItem-modalHeader": "_ComponentItem-modalHeader_lp9eh_63", "ComponentItem-modalTitle": "_ComponentItem-modalTitle_lp9eh_68", "ComponentItem-modalSubtitle": "_ComponentItem-modalSubtitle_lp9eh_75", "ComponentItem-modalBody": "_ComponentItem-modalBody_lp9eh_81", "ComponentItem-section": "_ComponentItem-section_lp9eh_90", "ComponentItem-sectionTitle": "_ComponentItem-sectionTitle_lp9eh_96", "ComponentItem-sectionDescription": "_ComponentItem-sectionDescription_lp9eh_103", "ComponentItem-versionList": "_ComponentItem-versionList_lp9eh_109", "ComponentItem-versionRow": "_ComponentItem-versionRow_lp9eh_115", "ComponentItem-versionRow--isDefault": "_ComponentItem-versionRow--isDefault_lp9eh_126", "ComponentItem-versionRow--isMarkedForDeletion": "_ComponentItem-versionRow--isMarkedForDeletion_lp9eh_131", "ComponentItem-versionInfo": "_ComponentItem-versionInfo_lp9eh_136", "ComponentItem-versionNumber": "_ComponentItem-versionNumber_lp9eh_143", "ComponentItem-defaultBadge": "_ComponentItem-defaultBadge_lp9eh_149", "ComponentItem-deleteBadge": "_ComponentItem-deleteBadge_lp9eh_160", "ComponentItem-versionActions": "_ComponentItem-versionActions_lp9eh_171", "ComponentItem-migrationOptions": "_ComponentItem-migrationOptions_lp9eh_177", "ComponentItem-select": "_ComponentItem-select_lp9eh_181", "ComponentItem-modalFooter": "_ComponentItem-modalFooter_lp9eh_202", "ComponentItem-footerLeft": "_ComponentItem-footerLeft_lp9eh_211", "ComponentItem-footerRight": "_ComponentItem-footerRight_lp9eh_216" };
2321
2321
 
2322
2322
  // src/puck/components/modal/index.tsx
2323
2323
  import { useEffect as useEffect4, useState as useState4 } from "react";
2324
2324
  import { createPortal } from "react-dom";
2325
2325
 
2326
- // src/puck/components/modal/styles.module.css
2327
- var styles_default2 = {};
2326
+ // css-module:D:\osamuProjects\netlisian\packages\soft-config\src\puck\components\modal\styles.module.css#css-module
2327
+ var styles_module_default2 = { "Modal": "_Modal_pvj02_1", "Modal--isOpen": "_Modal--isOpen_pvj02_29", "Modal-inner": "_Modal-inner_pvj02_37" };
2328
2328
 
2329
2329
  // src/puck/components/modal/index.tsx
2330
2330
  import { jsx as jsx10 } from "react/jsx-runtime";
2331
- var getClassName4 = get_class_name_factory_default("Modal", styles_default2);
2331
+ var getClassName4 = get_class_name_factory_default("Modal", styles_module_default2);
2332
2332
  var Modal = ({
2333
2333
  children,
2334
2334
  onClose,
@@ -2356,7 +2356,7 @@ var Modal = ({
2356
2356
 
2357
2357
  // src/puck/overrides/ComponentItem.tsx
2358
2358
  import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
2359
- var getClassName5 = get_class_name_factory_default("ComponentItem", ComponentItem_default);
2359
+ var getClassName5 = get_class_name_factory_default("ComponentItem", ComponentItem_module_default);
2360
2360
  var ComponentItem = (props) => {
2361
2361
  const softComponents = new Set(
2362
2362
  Object.keys(useSoftConfig((s) => s.softComponents))
@@ -2778,6 +2778,7 @@ export {
2778
2778
  ActionBarOverride as ActionBar,
2779
2779
  ComponentItem,
2780
2780
  Header,
2781
+ Modal,
2781
2782
  SoftConfigProvider,
2782
2783
  confirm,
2783
2784
  createSoftConfigStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlisian/softconfig",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -30,12 +30,14 @@
30
30
  "@types/react": "^18.0.0 || ^19.0.0",
31
31
  "@types/react-dom": "^18.0.0 || ^19.0.0",
32
32
  "eslint": "^9.36.0",
33
+ "postcss": "^8.5.6",
34
+ "postcss-modules": "^6.0.1",
33
35
  "size-limit": "^11.1.6",
34
36
  "tsup": "^8.0.2",
35
37
  "typescript": "5.9.3",
36
38
  "typescript-plugin-css-modules": "^5.1.0",
37
39
  "@netlisian/eslint-config": "0.0.0",
38
- "@netlisian/tsconfig": "0.0.0"
40
+ "@netlisian/tsconfig": "0.0.1"
39
41
  },
40
42
  "dependencies": {
41
43
  "classnames": "^2.5.1",