@nurihaus/web-design-system 3.9.4 → 3.10.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.
Files changed (46) hide show
  1. package/dist/ai/components.md +59 -15
  2. package/dist/ai/tokens.md +3 -3
  3. package/dist/chunk-6096.js +10 -3
  4. package/dist/chunk-7653.js +20 -0
  5. package/dist/{chunk-674.js → chunk-7687.js} +2 -56
  6. package/dist/{chunk-7460.js → chunk-7829.js} +39 -2
  7. package/dist/components/asset/asset.d.ts +5 -5
  8. package/dist/components/asset/asset.stories.d.ts +5 -5
  9. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
  10. package/dist/components/drawer/drawer-props.d.ts +7 -0
  11. package/dist/components/drawer/drawer-type.d.ts +6 -1
  12. package/dist/components/drawer/drawer.stories.d.ts +8 -0
  13. package/dist/components/empty-state/empty-state.stories.d.ts +12 -12
  14. package/dist/components/icon/icon-paths.d.ts +20 -0
  15. package/dist/components/icon/icon.stories.d.ts +1 -1
  16. package/dist/components/list/list-footer.stories.d.ts +7 -7
  17. package/dist/components/list/list-header.stories.d.ts +5 -5
  18. package/dist/components/list/list-row.stories.d.ts +16 -9
  19. package/dist/components/list/list-type.d.ts +10 -0
  20. package/dist/components/message/message.stories.d.ts +8 -8
  21. package/dist/components/notice/notice-props.d.ts +8 -0
  22. package/dist/components/notice/notice-type.d.ts +4 -2
  23. package/dist/components/notice/notice.stories.d.ts +15 -6
  24. package/dist/components/overlay/overlay.stories.d.ts +1 -1
  25. package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
  26. package/dist/components/skeleton/skeleton.stories.d.ts +6 -6
  27. package/dist/components/text-area/text-area-type.d.ts +3 -2
  28. package/dist/components/text-field/text-field-type.d.ts +3 -2
  29. package/dist/components/toast/toast.stories.d.ts +7 -7
  30. package/dist/components/top/top.stories.d.ts +4 -4
  31. package/dist/components.css +87 -0
  32. package/dist/drawer.js +7 -0
  33. package/dist/index.js +248 -100
  34. package/dist/list-row.js +78 -175
  35. package/dist/notice.js +8 -0
  36. package/dist/overlay.js +28 -26
  37. package/dist/radio.js +2 -0
  38. package/dist/search-field.js +9 -2
  39. package/dist/skeleton-group.js +78 -25
  40. package/dist/skeleton.js +2 -1
  41. package/dist/styles.css +71 -1
  42. package/dist/text-area.js +19 -10
  43. package/dist/text-field.js +9 -2
  44. package/dist/toast.js +29 -27
  45. package/dist/tokens.css +1 -1
  46. package/package.json +1 -1
@@ -3,8 +3,9 @@ import { TrackProps } from '../logging/logging-type';
3
3
  import { resize, sizes } from './text-area-props';
4
4
  export interface TextAreaRootProps {
5
5
  children: ReactNode;
6
- /** controlled·uncontrolled 는 조합형이 정한다 */
7
- value: string;
6
+ /** 없으면 uncontrolled — DOM 이 값을 쥔다 (react-hook-form register 가 ref 로 넣은 값이 남는다) */
7
+ value?: string;
8
+ defaultValue?: string;
8
9
  onChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;
9
10
  }
10
11
  export interface TextAreaLabelProps {
@@ -9,8 +9,9 @@ export interface TextFieldFormat {
9
9
  }
10
10
  export interface TextFieldRootProps {
11
11
  children: ReactNode;
12
- /** raw 값. controlled·uncontrolled 는 조합형이 정한다 */
13
- value: string;
12
+ /** raw 값. 없으면 uncontrolled — DOM 이 값을 쥔다 (react-hook-form register 가 ref 로 넣은 값이 남는다) */
13
+ value?: string;
14
+ defaultValue?: string;
14
15
  format?: TextFieldFormat;
15
16
  /** event.target.value 는 이미 raw 로 되돌려져 있다 */
16
17
  onChange: (e: ChangeEvent<HTMLInputElement>) => void;
@@ -24,12 +24,8 @@ declare const meta: {
24
24
  variant: "default";
25
25
  };
26
26
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
27
- slot?: string | undefined | undefined;
27
+ className?: string | undefined;
28
28
  style?: import("react").CSSProperties | undefined;
29
- title: import("react").ReactNode;
30
- track?: string | undefined;
31
- key?: import("react").Key | null | undefined;
32
- value?: string | number | readonly string[] | undefined;
33
29
  defaultChecked?: boolean | undefined | undefined;
34
30
  defaultValue?: string | number | readonly string[] | undefined;
35
31
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -37,7 +33,6 @@ declare const meta: {
37
33
  accessKey?: string | undefined | undefined;
38
34
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
39
35
  autoFocus?: boolean | undefined | undefined;
40
- className?: string | undefined;
41
36
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
42
37
  contextMenu?: string | undefined | undefined;
43
38
  dir?: string | undefined | undefined;
@@ -47,8 +42,10 @@ declare const meta: {
47
42
  id?: string | undefined | undefined;
48
43
  lang?: string | undefined | undefined;
49
44
  nonce?: string | undefined | undefined;
45
+ slot?: string | undefined | undefined;
50
46
  spellCheck?: (boolean | "true" | "false") | undefined;
51
47
  tabIndex?: number | undefined | undefined;
48
+ title: import("react").ReactNode;
52
49
  translate?: "yes" | "no" | undefined | undefined;
53
50
  radioGroup?: string | undefined | undefined;
54
51
  role?: import("react").AriaRole | undefined;
@@ -292,6 +289,9 @@ declare const meta: {
292
289
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement> | undefined;
293
290
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
294
291
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
292
+ track?: string | undefined;
293
+ key?: import("react").Key | null | undefined;
294
+ value?: string | number | readonly string[] | undefined;
295
295
  variant?: (typeof variants)[number] | undefined;
296
296
  trackProps?: Record<string, string | number | boolean> | undefined;
297
297
  open?: boolean | undefined;
@@ -300,9 +300,9 @@ declare const meta: {
300
300
  onEntered?: (() => void) | undefined;
301
301
  onExited?: (() => void) | undefined;
302
302
  action?: import("./toast-type").ToastAction | undefined;
303
- description?: import("react").ReactNode;
304
303
  onResume?: (() => void) | undefined;
305
304
  duration?: number | undefined;
305
+ description?: import("react").ReactNode;
306
306
  showClose?: boolean | undefined;
307
307
  ref?: import("react").LegacyRef<HTMLLIElement> | undefined;
308
308
  }>) => import("react/jsx-runtime").JSX.Element)[];
@@ -30,10 +30,8 @@ declare const meta: {
30
30
  subtitleBottom: string;
31
31
  };
32
32
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
33
- slot?: string | undefined | undefined;
33
+ className?: string | undefined | undefined;
34
34
  style?: import("react").CSSProperties | undefined;
35
- title: import("react").ReactNode;
36
- key?: import("react").Key | null | undefined;
37
35
  defaultChecked?: boolean | undefined | undefined;
38
36
  defaultValue?: string | number | readonly string[] | undefined;
39
37
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -41,7 +39,6 @@ declare const meta: {
41
39
  accessKey?: string | undefined | undefined;
42
40
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
43
41
  autoFocus?: boolean | undefined | undefined;
44
- className?: string | undefined | undefined;
45
42
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
46
43
  contextMenu?: string | undefined | undefined;
47
44
  dir?: string | undefined | undefined;
@@ -51,8 +48,10 @@ declare const meta: {
51
48
  id?: string | undefined | undefined;
52
49
  lang?: string | undefined | undefined;
53
50
  nonce?: string | undefined | undefined;
51
+ slot?: string | undefined | undefined;
54
52
  spellCheck?: (boolean | "true" | "false") | undefined;
55
53
  tabIndex?: number | undefined | undefined;
54
+ title: import("react").ReactNode;
56
55
  translate?: "yes" | "no" | undefined | undefined;
57
56
  radioGroup?: string | undefined | undefined;
58
57
  role?: import("react").AriaRole | undefined;
@@ -296,6 +295,7 @@ declare const meta: {
296
295
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
297
296
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
298
297
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
298
+ key?: import("react").Key | null | undefined;
299
299
  right?: import("react").ReactNode;
300
300
  titleLevel?: import("./top-type").TopTitleLevel | undefined;
301
301
  subtitleTop?: import("react").ReactNode;
@@ -3073,6 +3073,15 @@
3073
3073
  --motion-slide-offset: translateY(100%);
3074
3074
  }
3075
3075
 
3076
+ .drawer.side-bottom.fit-content {
3077
+ height: auto;
3078
+ max-height: var(--sheet-max-height);
3079
+ }
3080
+
3081
+ .drawer.side-bottom.fit-screen {
3082
+ height: var(--sheet-max-height);
3083
+ }
3084
+
3076
3085
  .drawer[data-state='open'] {
3077
3086
  animation: motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease);
3078
3087
  }
@@ -4479,6 +4488,67 @@
4479
4488
  content: none;
4480
4489
  }
4481
4490
 
4491
+ /* 끌기 핸들이 있는 줄: 줄은 div 이고 여백·간격은 안쪽 누르는 영역(list-row-main)이 갖는다 */
4492
+
4493
+ .list-row.has-handle {
4494
+ gap: 0;
4495
+ padding: 0;
4496
+ }
4497
+
4498
+ .list-row-handle {
4499
+ display: flex;
4500
+ flex: none;
4501
+ align-items: center;
4502
+ padding-inline-start: var(--spacing-4);
4503
+ color: var(--icon-secondary);
4504
+ cursor: grab;
4505
+ touch-action: none;
4506
+ }
4507
+
4508
+ .list-row-main {
4509
+ display: flex;
4510
+ flex: 1;
4511
+ align-items: center;
4512
+ align-self: stretch;
4513
+ gap: var(--spacing-12);
4514
+ min-width: 0;
4515
+ padding: var(--spacing-10) var(--spacing-16) var(--spacing-10) var(--spacing-4);
4516
+ border: 0;
4517
+ background-color: transparent;
4518
+ color: inherit;
4519
+ font: inherit;
4520
+ text-align: start;
4521
+ text-decoration: none;
4522
+ }
4523
+
4524
+ .list-row-main:is(a[href],button) {
4525
+ cursor: pointer;
4526
+ }
4527
+
4528
+ .list-row-main:is(a[href],button):focus-visible {
4529
+ outline-offset: calc(var(--focus-ring-width) * -1);
4530
+ }
4531
+
4532
+ /* 하나만 다른 줄. 면 테두리 안쪽에 맞춘 모서리이고 위·아래 구분선은 그리지 않는다 */
4533
+
4534
+ .list-row.highlighted {
4535
+ border: var(--border-width-strong) solid var(--border-accent);
4536
+ border-radius: calc(var(--radius-surface) - var(--hairline));
4537
+ }
4538
+
4539
+ .list-row.highlighted::before,
4540
+ .list-row.highlighted + .list-row::before {
4541
+ content: none;
4542
+ }
4543
+
4544
+ .list-row.dragging {
4545
+ background-color: var(--surface-muted);
4546
+ }
4547
+
4548
+ .list-row.dragging .list-row-handle {
4549
+ cursor: grabbing;
4550
+ }
4551
+
4482
4552
  .list-row-leading {
4483
4553
  display: flex;
4484
4554
  flex: none;
@@ -5729,6 +5799,23 @@ button.modal-with-double-button-close-button {
5729
5799
  align-self: flex-start;
5730
5800
  }
5731
5801
 
5802
+ /* 같은 줄: 글은 줄바꿈되고 버튼은 줄지 않은 채 본문 마지막 줄 옆에 붙는다 */
5803
+
5804
+ .notice.action-placement-inline .notice-body {
5805
+ flex-direction: row;
5806
+ gap: var(--spacing-12);
5807
+ }
5808
+
5809
+ .notice.action-placement-inline .notice-text {
5810
+ flex: 1;
5811
+ min-width: 0;
5812
+ }
5813
+
5814
+ .notice.action-placement-inline .notice-action {
5815
+ flex: none;
5816
+ align-self: flex-end;
5817
+ }
5818
+
5732
5819
  .base-pagination:where(.item) {
5733
5820
  display: inline-flex;
5734
5821
  align-items: center;
package/dist/drawer.js CHANGED
@@ -41,6 +41,7 @@ var common_props = __nuri_require__(7298);
41
41
 
42
42
  var sizes = ['s', 'm', 'l'];
43
43
  var sides = ['right', 'left', 'bottom'];
44
+ var fits = ['size', 'content', 'screen'];
44
45
  var drawerContentProps = {
45
46
  size: (0,common_props/* sizeProp */.lw)(sizes, 'm'),
46
47
  side: {
@@ -48,6 +49,12 @@ var drawerContentProps = {
48
49
  className: 'side',
49
50
  values: sides,
50
51
  "default": 'right'
52
+ },
53
+ fit: {
54
+ type: 'className',
55
+ className: 'fit',
56
+ values: fits,
57
+ "default": 'size'
51
58
  }
52
59
  };
53
60
  ;// ./components/drawer/drawer.tsx