@atelier-ui/react 0.3.5 → 0.3.7

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 (147) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/package.json +4 -1
  3. package/src/lib/accordion/atl-accordion.d.ts +1 -1
  4. package/src/lib/accordion/atl-accordion.d.ts.map +1 -1
  5. package/src/lib/accordion/atl-accordion.js +1 -1
  6. package/src/lib/accordion/atl-accordion.js.map +1 -1
  7. package/src/lib/alert/atl-alert.d.ts +1 -1
  8. package/src/lib/alert/atl-alert.d.ts.map +1 -1
  9. package/src/lib/alert/atl-alert.js +1 -1
  10. package/src/lib/alert/atl-alert.js.map +1 -1
  11. package/src/lib/avatar/atl-avatar.d.ts +1 -1
  12. package/src/lib/avatar/atl-avatar.d.ts.map +1 -1
  13. package/src/lib/avatar/atl-avatar.js +1 -1
  14. package/src/lib/avatar/atl-avatar.js.map +1 -1
  15. package/src/lib/badge/atl-badge.d.ts +1 -1
  16. package/src/lib/badge/atl-badge.d.ts.map +1 -1
  17. package/src/lib/badge/atl-badge.js +1 -1
  18. package/src/lib/badge/atl-badge.js.map +1 -1
  19. package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts +1 -1
  20. package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts.map +1 -1
  21. package/src/lib/breadcrumbs/atl-breadcrumbs.js +2 -2
  22. package/src/lib/breadcrumbs/atl-breadcrumbs.js.map +1 -1
  23. package/src/lib/button/atl-button.d.ts +1 -1
  24. package/src/lib/button/atl-button.d.ts.map +1 -1
  25. package/src/lib/button/atl-button.js +1 -1
  26. package/src/lib/button/atl-button.js.map +1 -1
  27. package/src/lib/card/atl-card.d.ts +1 -1
  28. package/src/lib/card/atl-card.d.ts.map +1 -1
  29. package/src/lib/card/atl-card.js +1 -1
  30. package/src/lib/card/atl-card.js.map +1 -1
  31. package/src/lib/chat/atl-chat.d.ts +1 -1
  32. package/src/lib/chat/atl-chat.d.ts.map +1 -1
  33. package/src/lib/chat/atl-chat.js +1 -1
  34. package/src/lib/chat/atl-chat.js.map +1 -1
  35. package/src/lib/checkbox/atl-checkbox.d.ts +1 -1
  36. package/src/lib/checkbox/atl-checkbox.d.ts.map +1 -1
  37. package/src/lib/checkbox/atl-checkbox.js +1 -1
  38. package/src/lib/checkbox/atl-checkbox.js.map +1 -1
  39. package/src/lib/code-block/atl-code-block.d.ts +1 -1
  40. package/src/lib/code-block/atl-code-block.d.ts.map +1 -1
  41. package/src/lib/code-block/atl-code-block.js +1 -1
  42. package/src/lib/code-block/atl-code-block.js.map +1 -1
  43. package/src/lib/combobox/atl-combobox.d.ts +1 -1
  44. package/src/lib/combobox/atl-combobox.d.ts.map +1 -1
  45. package/src/lib/combobox/atl-combobox.js +1 -1
  46. package/src/lib/combobox/atl-combobox.js.map +1 -1
  47. package/src/lib/dialog/atl-dialog.d.ts +1 -1
  48. package/src/lib/dialog/atl-dialog.d.ts.map +1 -1
  49. package/src/lib/dialog/atl-dialog.js +1 -1
  50. package/src/lib/dialog/atl-dialog.js.map +1 -1
  51. package/src/lib/drawer/atl-drawer.d.ts +1 -1
  52. package/src/lib/drawer/atl-drawer.d.ts.map +1 -1
  53. package/src/lib/drawer/atl-drawer.js +2 -2
  54. package/src/lib/drawer/atl-drawer.js.map +1 -1
  55. package/src/lib/icon/atl-icon.d.ts +1 -1
  56. package/src/lib/icon/atl-icon.d.ts.map +1 -1
  57. package/src/lib/icon/atl-icon.js +1 -1
  58. package/src/lib/icon/atl-icon.js.map +1 -1
  59. package/src/lib/input/atl-input.d.ts +1 -1
  60. package/src/lib/input/atl-input.d.ts.map +1 -1
  61. package/src/lib/input/atl-input.js +1 -1
  62. package/src/lib/input/atl-input.js.map +1 -1
  63. package/src/lib/menu/atl-menu.d.ts +2 -1
  64. package/src/lib/menu/atl-menu.d.ts.map +1 -1
  65. package/src/lib/menu/atl-menu.js +2 -1
  66. package/src/lib/menu/atl-menu.js.map +1 -1
  67. package/src/lib/pagination/atl-pagination.d.ts +1 -1
  68. package/src/lib/pagination/atl-pagination.d.ts.map +1 -1
  69. package/src/lib/pagination/atl-pagination.js +1 -1
  70. package/src/lib/pagination/atl-pagination.js.map +1 -1
  71. package/src/lib/progress/atl-progress.d.ts +1 -1
  72. package/src/lib/progress/atl-progress.d.ts.map +1 -1
  73. package/src/lib/progress/atl-progress.js +1 -1
  74. package/src/lib/progress/atl-progress.js.map +1 -1
  75. package/src/lib/radio/atl-radio.d.ts +1 -1
  76. package/src/lib/radio/atl-radio.d.ts.map +1 -1
  77. package/src/lib/radio/atl-radio.js +1 -1
  78. package/src/lib/radio/atl-radio.js.map +1 -1
  79. package/src/lib/radio-group/atl-radio-group.d.ts +1 -1
  80. package/src/lib/radio-group/atl-radio-group.d.ts.map +1 -1
  81. package/src/lib/radio-group/atl-radio-group.js +1 -1
  82. package/src/lib/radio-group/atl-radio-group.js.map +1 -1
  83. package/src/lib/select/atl-select.d.ts +2 -1
  84. package/src/lib/select/atl-select.d.ts.map +1 -1
  85. package/src/lib/select/atl-select.js +2 -1
  86. package/src/lib/select/atl-select.js.map +1 -1
  87. package/src/lib/skeleton/atl-skeleton.d.ts +1 -1
  88. package/src/lib/skeleton/atl-skeleton.d.ts.map +1 -1
  89. package/src/lib/skeleton/atl-skeleton.js +1 -1
  90. package/src/lib/skeleton/atl-skeleton.js.map +1 -1
  91. package/src/lib/stepper/atl-stepper.d.ts +1 -1
  92. package/src/lib/stepper/atl-stepper.d.ts.map +1 -1
  93. package/src/lib/stepper/atl-stepper.js +1 -1
  94. package/src/lib/stepper/atl-stepper.js.map +1 -1
  95. package/src/lib/table/atl-table.d.ts +1 -1
  96. package/src/lib/table/atl-table.d.ts.map +1 -1
  97. package/src/lib/table/atl-table.js +1 -1
  98. package/src/lib/table/atl-table.js.map +1 -1
  99. package/src/lib/tabs/atl-tabs.d.ts +1 -1
  100. package/src/lib/tabs/atl-tabs.d.ts.map +1 -1
  101. package/src/lib/tabs/atl-tabs.js +1 -1
  102. package/src/lib/tabs/atl-tabs.js.map +1 -1
  103. package/src/lib/textarea/atl-textarea.d.ts +1 -1
  104. package/src/lib/textarea/atl-textarea.d.ts.map +1 -1
  105. package/src/lib/textarea/atl-textarea.js +1 -1
  106. package/src/lib/textarea/atl-textarea.js.map +1 -1
  107. package/src/lib/toast/atl-toast.d.ts +1 -1
  108. package/src/lib/toast/atl-toast.d.ts.map +1 -1
  109. package/src/lib/toast/atl-toast.js +1 -1
  110. package/src/lib/toast/atl-toast.js.map +1 -1
  111. package/src/lib/toggle/atl-toggle.d.ts +1 -1
  112. package/src/lib/toggle/atl-toggle.d.ts.map +1 -1
  113. package/src/lib/toggle/atl-toggle.js +1 -1
  114. package/src/lib/toggle/atl-toggle.js.map +1 -1
  115. package/src/lib/tooltip/atl-tooltip.d.ts +2 -1
  116. package/src/lib/tooltip/atl-tooltip.d.ts.map +1 -1
  117. package/src/lib/tooltip/atl-tooltip.js +2 -1
  118. package/src/lib/tooltip/atl-tooltip.js.map +1 -1
  119. package/src/lib/accordion/atl-accordion.css +0 -145
  120. package/src/lib/alert/atl-alert.css +0 -102
  121. package/src/lib/avatar/atl-avatar.css +0 -181
  122. package/src/lib/badge/atl-badge.css +0 -74
  123. package/src/lib/breadcrumbs/atl-breadcrumbs.css +0 -99
  124. package/src/lib/button/atl-button.css +0 -173
  125. package/src/lib/card/atl-card.css +0 -91
  126. package/src/lib/chat/atl-chat.css +0 -506
  127. package/src/lib/checkbox/atl-checkbox.css +0 -151
  128. package/src/lib/code-block/atl-code-block.css +0 -136
  129. package/src/lib/combobox/atl-combobox.css +0 -256
  130. package/src/lib/dialog/atl-dialog.css +0 -198
  131. package/src/lib/drawer/atl-drawer.css +0 -265
  132. package/src/lib/icon/atl-icon.css +0 -47
  133. package/src/lib/input/atl-input.css +0 -121
  134. package/src/lib/menu/atl-menu.css +0 -122
  135. package/src/lib/pagination/atl-pagination.css +0 -101
  136. package/src/lib/progress/atl-progress.css +0 -84
  137. package/src/lib/radio/atl-radio.css +0 -92
  138. package/src/lib/radio-group/atl-radio-group.css +0 -46
  139. package/src/lib/select/atl-select.css +0 -124
  140. package/src/lib/skeleton/atl-skeleton.css +0 -71
  141. package/src/lib/stepper/atl-stepper.css +0 -199
  142. package/src/lib/table/atl-table.css +0 -257
  143. package/src/lib/tabs/atl-tabs.css +0 -161
  144. package/src/lib/textarea/atl-textarea.css +0 -119
  145. package/src/lib/toast/atl-toast.css +0 -168
  146. package/src/lib/toggle/atl-toggle.css +0 -138
  147. package/src/lib/tooltip/atl-tooltip.css +0 -97
@@ -1,138 +0,0 @@
1
- /* Geometry contract: every size this component states is a border-box size.
2
- * Declared with the component rather than as a global reset, so it ships in the
3
- * same file as the sizes it governs and no consuming app has to supply one.
4
- * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
- * See ADR-0043. */
6
- .atl-toggle,
7
- .atl-toggle * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-toggle {
12
- display: block;
13
- font-family: var(--ui-font-family);
14
- font-size: var(--ui-font-size-md);
15
- /* The root is a block wrapping an inline-flex row, so it opens a line box and
16
- its strut is sized by whatever leading it inherits. Without this the row is
17
- 40px here and 48px inside an app with roomy prose leading. */
18
- line-height: var(--ui-line-height-tight);
19
- }
20
-
21
- .atl-toggle label {
22
- display: inline-flex;
23
- align-items: center;
24
- gap: var(--ui-spacing-3);
25
- cursor: pointer;
26
- user-select: none;
27
- color: var(--ui-color-text);
28
- /* Row recipe (ADR-0052): the clickable line is a row — it states its height
29
- and centres the control + text, rather than being sized by whichever of
30
- the two happens to be taller. */
31
- min-height: var(--ui-row-height-sm);
32
- padding-block: 0;
33
- line-height: var(--ui-line-height-tight);
34
- }
35
-
36
- /* Hide native checkbox visually but keep it accessible */
37
- .atl-toggle input[type='checkbox'] {
38
- position: absolute;
39
- width: 1px;
40
- height: 1px;
41
- padding: 0;
42
- margin: -1px;
43
- overflow: hidden;
44
- clip: rect(0, 0, 0, 0);
45
- white-space: nowrap;
46
- border: 0;
47
- }
48
-
49
- /* Track — pill-shaped container */
50
- .atl-toggle .track {
51
- position: relative;
52
- display: inline-flex;
53
- align-items: center;
54
- flex-shrink: 0;
55
- width: 2.75rem;
56
- height: 1.5rem;
57
- border-radius: var(--ui-radius-full);
58
- border: var(--ui-border-width) solid var(--ui-color-border-strong);
59
- background-color: var(--ui-color-input-bg);
60
- transition:
61
- background-color var(--ui-transition-fast),
62
- border-color var(--ui-transition-fast),
63
- box-shadow var(--ui-transition-fast);
64
- cursor: pointer;
65
- }
66
-
67
- /* Thumb — circular slider */
68
- .atl-toggle .thumb {
69
- position: absolute;
70
- left: 0.125rem;
71
- width: 1.125rem;
72
- height: 1.125rem;
73
- border-radius: var(--ui-radius-full);
74
- background-color: var(--ui-color-border-strong);
75
- box-shadow: var(--ui-shadow-xs);
76
- transition:
77
- transform var(--ui-transition-normal) var(--ui-ease-out),
78
- background-color var(--ui-transition-fast);
79
- }
80
-
81
- /* Hover state */
82
- .atl-toggle label:hover:not(:has(input:disabled)) .track {
83
- border-color: var(--ui-color-primary);
84
- }
85
-
86
- /* Focus ring on track when native input is focused */
87
- .atl-toggle input[type='checkbox']:focus-visible + .track {
88
- box-shadow: var(--ui-focus-ring);
89
- border-color: var(--ui-color-primary);
90
- }
91
-
92
- /* Checked state — track */
93
- .atl-toggle.is-checked .track {
94
- background-color: var(--ui-color-primary);
95
- border-color: var(--ui-color-primary);
96
- }
97
-
98
- /* Checked state — thumb slides right */
99
- .atl-toggle.is-checked .thumb {
100
- transform: translateX(1.25rem);
101
- background-color: var(--ui-color-text-on-primary);
102
- }
103
-
104
- /* Invalid state — track border */
105
- .atl-toggle.is-invalid .track {
106
- border-color: var(--ui-color-input-border-invalid);
107
- }
108
-
109
- .atl-toggle.is-invalid input[type='checkbox']:focus-visible + .track {
110
- border-color: var(--ui-color-input-border-invalid);
111
- box-shadow: var(--ui-focus-ring-danger);
112
- }
113
-
114
- /* Disabled state */
115
- .atl-toggle.is-disabled {
116
- opacity: var(--ui-opacity-disabled);
117
- cursor: not-allowed;
118
- }
119
-
120
- .atl-toggle.is-disabled label {
121
- cursor: not-allowed;
122
- }
123
-
124
- .atl-toggle.is-disabled .track {
125
- cursor: not-allowed;
126
- }
127
-
128
- /* Error messages */
129
- .atl-toggle .errors {
130
- margin-top: var(--ui-spacing-2);
131
- }
132
-
133
- .atl-toggle .error-message {
134
- margin: 0;
135
- font-size: var(--ui-font-size-sm);
136
- color: var(--ui-color-error-text);
137
- line-height: var(--ui-line-height-normal);
138
- }
@@ -1,97 +0,0 @@
1
- /* Geometry contract: every size this component states is a border-box size.
2
- * Declared with the component rather than as a global reset, so it ships in the
3
- * same file as the sizes it governs and no consuming app has to supply one.
4
- * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
- * See ADR-0043. */
6
- :is(.atl-tooltip, .atl-tooltip-wrapper),
7
- :is(.atl-tooltip, .atl-tooltip-wrapper) * {
8
- box-sizing: border-box;
9
- }
10
-
11
- /* Tooltip wrapper — inline container */
12
- .atl-tooltip-wrapper {
13
- /* The library states its own typeface (ADR-0035). Without this the component
14
- * renders in the consuming app's font while its neighbours render Instrument
15
- * Sans — measured: a card next to a button showed two typefaces. Declared once
16
- * per component root, never on a descendant (ADR-0049). */
17
- font-family: var(--ui-font-family);
18
- display: inline-block;
19
- position: relative;
20
- }
21
-
22
- /* Tooltip content */
23
- .atl-tooltip {
24
- position: absolute;
25
- z-index: var(--ui-z-dropdown);
26
- display: block;
27
- padding: var(--ui-spacing-1) var(--ui-spacing-2);
28
- background: var(--ui-color-text);
29
- color: var(--ui-color-surface);
30
- font-family: var(--ui-font-family);
31
- font-size: var(--ui-font-size-xs);
32
- line-height: var(--ui-line-height-normal);
33
- border-radius: var(--ui-radius-sm);
34
- box-shadow: var(--ui-shadow-md);
35
- max-width: 20rem;
36
- word-wrap: break-word;
37
- pointer-events: none;
38
- white-space: nowrap;
39
-
40
- /* Entry animation */
41
- animation: atl-tooltip-enter var(--ui-duration-fast) var(--ui-ease-out)
42
- forwards;
43
- }
44
-
45
- /* Positioning */
46
- .atl-tooltip.position-above {
47
- bottom: calc(100% + 8px);
48
- left: 50%;
49
- transform: translateX(-50%);
50
- }
51
-
52
- .atl-tooltip.position-below {
53
- top: calc(100% + 8px);
54
- left: 50%;
55
- transform: translateX(-50%);
56
- }
57
-
58
- .atl-tooltip.position-left {
59
- right: calc(100% + 8px);
60
- top: 50%;
61
- transform: translateY(-50%);
62
- }
63
-
64
- .atl-tooltip.position-right {
65
- left: calc(100% + 8px);
66
- top: 50%;
67
- transform: translateY(-50%);
68
- }
69
-
70
- @keyframes atl-tooltip-enter {
71
- from {
72
- opacity: 0;
73
- transform: scale(0.95) translateX(-50%);
74
- }
75
- to {
76
- opacity: 1;
77
- transform: scale(1) translateX(-50%);
78
- }
79
- }
80
-
81
- /* Left/right don't need translateX in animation */
82
- .atl-tooltip.position-left,
83
- .atl-tooltip.position-right {
84
- animation: atl-tooltip-enter-side var(--ui-duration-fast) var(--ui-ease-out)
85
- forwards;
86
- }
87
-
88
- @keyframes atl-tooltip-enter-side {
89
- from {
90
- opacity: 0;
91
- transform: scale(0.95) translateY(-50%);
92
- }
93
- to {
94
- opacity: 1;
95
- transform: scale(1) translateY(-50%);
96
- }
97
- }