@x-plat/design-system 0.11.0 → 0.13.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/dist/components/AutoResizeTextArea/index.cjs +2 -2
- package/dist/components/AutoResizeTextArea/index.js +2 -2
- package/dist/components/ChatInput/index.cjs +2 -2
- package/dist/components/ChatInput/index.js +2 -2
- package/dist/components/CheckBox/index.cjs +2 -2
- package/dist/components/CheckBox/index.js +2 -2
- package/dist/components/DatePicker/index.cjs +109 -75
- package/dist/components/DatePicker/index.d.cts +19 -0
- package/dist/components/DatePicker/index.d.ts +19 -0
- package/dist/components/DatePicker/index.js +109 -75
- package/dist/components/Dropdown/index.cjs +22 -9
- package/dist/components/Dropdown/index.css +3 -0
- package/dist/components/Dropdown/index.js +22 -9
- package/dist/components/Editor/index.cjs +602 -30
- package/dist/components/Editor/index.css +103 -0
- package/dist/components/Editor/index.d.cts +1 -1
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/index.js +602 -30
- package/dist/components/FieldMessage/index.cjs +2 -2
- package/dist/components/FieldMessage/index.d.cts +8 -0
- package/dist/components/FieldMessage/index.d.ts +8 -0
- package/dist/components/FieldMessage/index.js +2 -2
- package/dist/components/FileUpload/index.cjs +10 -6
- package/dist/components/FileUpload/index.d.cts +15 -2
- package/dist/components/FileUpload/index.d.ts +15 -2
- package/dist/components/FileUpload/index.js +10 -6
- package/dist/components/ImageSelector/index.cjs +7 -6
- package/dist/components/ImageSelector/index.d.cts +15 -2
- package/dist/components/ImageSelector/index.d.ts +15 -2
- package/dist/components/ImageSelector/index.js +7 -6
- package/dist/components/Input/index.cjs +2 -2
- package/dist/components/Input/index.d.cts +4 -0
- package/dist/components/Input/index.d.ts +4 -0
- package/dist/components/Input/index.js +2 -2
- package/dist/components/PopOver/index.cjs +21 -7
- package/dist/components/PopOver/index.css +3 -0
- package/dist/components/PopOver/index.js +21 -7
- package/dist/components/Radio/index.cjs +2 -2
- package/dist/components/Radio/index.js +2 -2
- package/dist/components/Select/index.cjs +23 -10
- package/dist/components/Select/index.css +3 -0
- package/dist/components/Select/index.d.cts +1 -2
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/Select/index.js +23 -10
- package/dist/components/Switch/index.cjs +2 -2
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/TextArea/index.cjs +2 -2
- package/dist/components/TextArea/index.js +2 -2
- package/dist/components/TimePicker/index.cjs +23 -10
- package/dist/components/TimePicker/index.css +3 -0
- package/dist/components/TimePicker/index.js +23 -10
- package/dist/components/index.cjs +751 -124
- package/dist/components/index.css +113 -0
- package/dist/components/index.js +751 -124
- package/dist/index.cjs +751 -124
- package/dist/index.css +113 -0
- package/dist/index.js +751 -124
- package/guidelines/Guidelines.md +12 -0
- package/guidelines/MIGRATION.md +270 -0
- package/guidelines/components/datepicker.md +26 -0
- package/guidelines/components/editor.md +58 -3
- package/guidelines/components/file-media.md +21 -4
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
1
3
|
/* src/components/Editor/editor.scss */
|
|
2
4
|
.lib-xplat-editor {
|
|
3
5
|
display: flex;
|
|
@@ -284,3 +286,104 @@
|
|
|
284
286
|
color: var(--semantic-text-inverse);
|
|
285
287
|
border-color: var(--semantic-surface-brand-default);
|
|
286
288
|
}
|
|
289
|
+
.lib-xplat-editor.readonly .lib-xplat-editor__editable ul.checklist > li::before {
|
|
290
|
+
cursor: default;
|
|
291
|
+
}
|
|
292
|
+
.lib-xplat-editor__editable .align-center {
|
|
293
|
+
text-align: center;
|
|
294
|
+
}
|
|
295
|
+
.lib-xplat-editor__editable .align-right {
|
|
296
|
+
text-align: right;
|
|
297
|
+
}
|
|
298
|
+
.lib-xplat-editor__editable ul.checklist {
|
|
299
|
+
list-style: none;
|
|
300
|
+
padding-left: var(--spacing-space-2);
|
|
301
|
+
}
|
|
302
|
+
.lib-xplat-editor__editable ul.checklist > li {
|
|
303
|
+
position: relative;
|
|
304
|
+
padding-left: var(--spacing-space-6);
|
|
305
|
+
cursor: default;
|
|
306
|
+
}
|
|
307
|
+
.lib-xplat-editor__editable ul.checklist > li::before {
|
|
308
|
+
content: "";
|
|
309
|
+
position: absolute;
|
|
310
|
+
left: 0;
|
|
311
|
+
top: 0.25em;
|
|
312
|
+
width: 1em;
|
|
313
|
+
height: 1em;
|
|
314
|
+
border: 1px solid var(--semantic-border-tertiary);
|
|
315
|
+
border-radius: var(--spacing-radius-sm);
|
|
316
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
}
|
|
319
|
+
.lib-xplat-editor__editable ul.checklist > li[data-checked=true] {
|
|
320
|
+
color: var(--semantic-text-tertiary);
|
|
321
|
+
text-decoration: line-through;
|
|
322
|
+
}
|
|
323
|
+
.lib-xplat-editor__editable ul.checklist > li[data-checked=true]::before {
|
|
324
|
+
content: "\2713";
|
|
325
|
+
display: flex;
|
|
326
|
+
align-items: center;
|
|
327
|
+
justify-content: center;
|
|
328
|
+
border-color: var(--semantic-surface-brand-default);
|
|
329
|
+
background-color: var(--semantic-surface-brand-default);
|
|
330
|
+
color: var(--semantic-text-inverse);
|
|
331
|
+
font-size: 0.75em;
|
|
332
|
+
line-height: 1;
|
|
333
|
+
}
|
|
334
|
+
.lib-xplat-editor__editable mark {
|
|
335
|
+
background-color: var(--semantic-surface-warning-subtle);
|
|
336
|
+
color: var(--semantic-text-primary);
|
|
337
|
+
border-radius: var(--spacing-radius-sm);
|
|
338
|
+
padding: 0 2px;
|
|
339
|
+
}
|
|
340
|
+
.lib-xplat-editor__editable table {
|
|
341
|
+
width: 100%;
|
|
342
|
+
border-collapse: collapse;
|
|
343
|
+
margin: var(--spacing-space-3) 0;
|
|
344
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
345
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
346
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
347
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
348
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
349
|
+
}
|
|
350
|
+
.lib-xplat-editor__editable table th,
|
|
351
|
+
.lib-xplat-editor__editable table td {
|
|
352
|
+
border: 1px solid var(--semantic-border-primary);
|
|
353
|
+
padding: var(--spacing-space-2) var(--spacing-space-3);
|
|
354
|
+
text-align: left;
|
|
355
|
+
vertical-align: top;
|
|
356
|
+
min-width: 3em;
|
|
357
|
+
}
|
|
358
|
+
.lib-xplat-editor__editable table th {
|
|
359
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
360
|
+
font-weight: var(--semantic-typo-label-2-sb-weight);
|
|
361
|
+
}
|
|
362
|
+
.lib-xplat-editor__lang {
|
|
363
|
+
margin-left: auto;
|
|
364
|
+
border: 1px solid var(--semantic-border-primary);
|
|
365
|
+
border-radius: var(--spacing-radius-sm);
|
|
366
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
367
|
+
color: var(--semantic-text-secondary);
|
|
368
|
+
padding: 0 var(--spacing-space-1);
|
|
369
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
370
|
+
font-size: var(--semantic-typo-caption-2-r-size);
|
|
371
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
372
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
373
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
374
|
+
cursor: pointer;
|
|
375
|
+
}
|
|
376
|
+
.lib-xplat-editor__editable pre .tok-keyword {
|
|
377
|
+
color: var(--semantic-text-link);
|
|
378
|
+
font-weight: var(--semantic-typo-label-2-sb-weight);
|
|
379
|
+
}
|
|
380
|
+
.lib-xplat-editor__editable pre .tok-string {
|
|
381
|
+
color: var(--semantic-text-success);
|
|
382
|
+
}
|
|
383
|
+
.lib-xplat-editor__editable pre .tok-number {
|
|
384
|
+
color: var(--semantic-text-accent-blue);
|
|
385
|
+
}
|
|
386
|
+
.lib-xplat-editor__editable pre .tok-comment {
|
|
387
|
+
color: var(--semantic-text-tertiary);
|
|
388
|
+
font-style: italic;
|
|
389
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
type EditorToolbarItem = "bold" | "italic" | "underline" | "strikethrough" | "code" | "heading" | "list" | "ordered-list" | "blockquote" | "code-block" | "link" | "image" | "divider";
|
|
3
|
+
type EditorToolbarItem = "bold" | "italic" | "underline" | "strikethrough" | "code" | "heading-1" | "heading-2" | "heading-3" | "list" | "ordered-list" | "blockquote" | "code-block" | "link" | "image" | "divider" | "checklist" | "align-left" | "align-center" | "align-right" | "highlight" | "superscript" | "subscript" | "table" | "clear-format" | "undo" | "redo";
|
|
4
4
|
interface EditorProps {
|
|
5
5
|
/** HTML 문자열. 외부에서 setter 와 함께 controlled 로 사용 */
|
|
6
6
|
value?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
type EditorToolbarItem = "bold" | "italic" | "underline" | "strikethrough" | "code" | "heading" | "list" | "ordered-list" | "blockquote" | "code-block" | "link" | "image" | "divider";
|
|
3
|
+
type EditorToolbarItem = "bold" | "italic" | "underline" | "strikethrough" | "code" | "heading-1" | "heading-2" | "heading-3" | "list" | "ordered-list" | "blockquote" | "code-block" | "link" | "image" | "divider" | "checklist" | "align-left" | "align-center" | "align-right" | "highlight" | "superscript" | "subscript" | "table" | "clear-format" | "undo" | "redo";
|
|
4
4
|
interface EditorProps {
|
|
5
5
|
/** HTML 문자열. 외부에서 setter 와 함께 controlled 로 사용 */
|
|
6
6
|
value?: string;
|