origam 2.19.0 → 2.21.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 (184) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/src/assets/css/main.css +1 -1
  3. package/dist/src/assets/css/tokens/dark.css +0 -16
  4. package/dist/src/assets/css/tokens/light.css +0 -8
  5. package/dist/src/assets/scss/tokens/_dark.scss +0 -16
  6. package/dist/src/assets/scss/tokens/_light.scss +0 -8
  7. package/dist/src/components/Alert/OrigamAlert.vue +20 -0
  8. package/dist/src/components/App/OrigamAppBar.vue +20 -0
  9. package/dist/src/components/Audio/OrigamAudio.vue +20 -0
  10. package/dist/src/components/Avatar/OrigamAvatar.vue +20 -0
  11. package/dist/src/components/Avatar/OrigamAvatarGroup.vue +20 -0
  12. package/dist/src/components/Badge/OrigamBadge.vue +12 -0
  13. package/dist/src/components/Blockquote/OrigamBlockquote.vue +35 -65
  14. package/dist/src/components/BottomNav/OrigamBottomNav.vue +20 -0
  15. package/dist/src/components/Bracket/OrigamBracket.vue +12 -0
  16. package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +20 -0
  17. package/dist/src/components/Bracket/OrigamBracketMatch.vue +33 -5
  18. package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +20 -0
  19. package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +8 -0
  20. package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +20 -0
  21. package/dist/src/components/Btn/OrigamBtn.vue +20 -0
  22. package/dist/src/components/Btn/OrigamBtnGroup.vue +20 -0
  23. package/dist/src/components/Btn/OrigamBtnToggle.vue +20 -0
  24. package/dist/src/components/Calendar/OrigamCalendar.vue +21 -1
  25. package/dist/src/components/Card/OrigamCard.vue +20 -0
  26. package/dist/src/components/Card/OrigamCardHeader.vue +20 -0
  27. package/dist/src/components/Card/OrigamCardText.vue +20 -0
  28. package/dist/src/components/Carousel/OrigamCarousel.vue +20 -0
  29. package/dist/src/components/Carousel/OrigamCarouselItem.vue +20 -0
  30. package/dist/src/components/Chart/OrigamChart.vue +25 -1
  31. package/dist/src/components/Chart/OrigamChartBoxPlot.vue +12 -0
  32. package/dist/src/components/Chart/OrigamChartBullet.vue +12 -0
  33. package/dist/src/components/Chart/OrigamChartCandlestick.vue +12 -0
  34. package/dist/src/components/Chart/OrigamChartCartesian.vue +12 -0
  35. package/dist/src/components/Chart/OrigamChartGauge.vue +12 -0
  36. package/dist/src/components/Chart/OrigamChartHeatmap.vue +12 -0
  37. package/dist/src/components/Chart/OrigamChartHoneycomb.vue +12 -0
  38. package/dist/src/components/Chart/OrigamChartMap.vue +12 -0
  39. package/dist/src/components/Chart/OrigamChartPareto.vue +12 -0
  40. package/dist/src/components/Chart/OrigamChartPictorial.vue +12 -0
  41. package/dist/src/components/Chart/OrigamChartPolar.vue +12 -0
  42. package/dist/src/components/Chart/OrigamChartPolarBar.vue +12 -0
  43. package/dist/src/components/Chart/OrigamChartPyramid.vue +12 -0
  44. package/dist/src/components/Chart/OrigamChartRadar.vue +12 -0
  45. package/dist/src/components/Chart/OrigamChartSankey.vue +12 -0
  46. package/dist/src/components/Chart/OrigamChartSparkline.vue +12 -0
  47. package/dist/src/components/Chart/OrigamChartStreamgraph.vue +12 -0
  48. package/dist/src/components/Chart/OrigamChartSunburst.vue +12 -0
  49. package/dist/src/components/Chart/OrigamChartTreemap.vue +12 -0
  50. package/dist/src/components/Chart/OrigamChartVariwide.vue +12 -0
  51. package/dist/src/components/Chart/OrigamChartWordCloud.vue +12 -0
  52. package/dist/src/components/Checkbox/OrigamCheckbox.vue +20 -0
  53. package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +12 -0
  54. package/dist/src/components/Checkbox/OrigamCheckboxGroup.vue +20 -0
  55. package/dist/src/components/Chip/OrigamChip.vue +20 -0
  56. package/dist/src/components/Chip/OrigamChipGroup.vue +20 -0
  57. package/dist/src/components/Clipboard/OrigamClipboard.vue +20 -0
  58. package/dist/src/components/Code/OrigamCode.vue +20 -0
  59. package/dist/src/components/ColorPicker/OrigamColorPicker.vue +20 -0
  60. package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +20 -0
  61. package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +4 -0
  62. package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +20 -0
  63. package/dist/src/components/Counter/OrigamCounter.vue +20 -0
  64. package/dist/src/components/DataList/OrigamDataList.vue +20 -0
  65. package/dist/src/components/DataList/OrigamDataText.vue +8 -0
  66. package/dist/src/components/DataList/OrigamDataTitle.vue +8 -0
  67. package/dist/src/components/DataTable/OrigamDataTable.vue +20 -0
  68. package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +5 -1
  69. package/dist/src/components/DataTable/OrigamDataTableFooter.vue +4 -0
  70. package/dist/src/components/DatePicker/OrigamDatePicker.vue +20 -0
  71. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +20 -0
  72. package/dist/src/components/Dialog/OrigamDialog.vue +20 -0
  73. package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +20 -0
  74. package/dist/src/components/Divider/OrigamDivider.vue +4 -0
  75. package/dist/src/components/Drawer/OrigamDrawer.vue +20 -0
  76. package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +20 -0
  77. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +20 -0
  78. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +20 -0
  79. package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +20 -0
  80. package/dist/src/components/Field/OrigamField.vue +20 -0
  81. package/dist/src/components/FileField/OrigamFileField.vue +20 -0
  82. package/dist/src/components/Grid/OrigamGrid.vue +21 -1
  83. package/dist/src/components/Grids/OrigamCol.vue +16 -0
  84. package/dist/src/components/Grids/OrigamContainer.vue +17 -1
  85. package/dist/src/components/Grids/OrigamRow.vue +16 -0
  86. package/dist/src/components/Icon/OrigamClassIcon.vue +21 -1
  87. package/dist/src/components/Icon/OrigamComponentIcon.vue +21 -1
  88. package/dist/src/components/Icon/OrigamIcon.vue +21 -1
  89. package/dist/src/components/Icon/OrigamLigatureIcon.vue +21 -1
  90. package/dist/src/components/Icon/OrigamSvgIcon.vue +21 -1
  91. package/dist/src/components/Img/OrigamImg.vue +20 -0
  92. package/dist/src/components/Input/OrigamInput.vue +20 -0
  93. package/dist/src/components/Kbd/OrigamKbd.vue +12 -0
  94. package/dist/src/components/Label/OrigamLabel.vue +20 -0
  95. package/dist/src/components/Layout/OrigamLayout.vue +21 -1
  96. package/dist/src/components/List/OrigamList.vue +21 -1
  97. package/dist/src/components/List/OrigamListGroup.vue +20 -0
  98. package/dist/src/components/List/OrigamListItem.vue +20 -0
  99. package/dist/src/components/List/OrigamListSubheader.vue +20 -0
  100. package/dist/src/components/Main/OrigamMain.vue +20 -0
  101. package/dist/src/components/Masonry/OrigamMasonry.vue +21 -1
  102. package/dist/src/components/Media/OrigamMediaScrubber.vue +5 -1
  103. package/dist/src/components/Media/OrigamMediaVolumeControl.vue +4 -0
  104. package/dist/src/components/Menu/OrigamMenu.vue +20 -0
  105. package/dist/src/components/Messages/OrigamMessages.vue +20 -0
  106. package/dist/src/components/NumberField/OrigamNumberField.vue +20 -0
  107. package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +20 -0
  108. package/dist/src/components/Pagination/OrigamPagination.vue +16 -0
  109. package/dist/src/components/Parallax/OrigamParallax.vue +20 -0
  110. package/dist/src/components/Parallax/OrigamParallaxElement.vue +20 -0
  111. package/dist/src/components/PasswordField/OrigamPasswordField.vue +20 -0
  112. package/dist/src/components/Picker/OrigamPicker.vue +20 -0
  113. package/dist/src/components/Progress/OrigamProgress.vue +12 -0
  114. package/dist/src/components/Progress/OrigamProgressCircular.vue +8 -0
  115. package/dist/src/components/Progress/OrigamProgressLinear.vue +12 -0
  116. package/dist/src/components/QrCode/OrigamQrCode.vue +21 -1
  117. package/dist/src/components/Radio/OrigamRadio.vue +20 -0
  118. package/dist/src/components/Radio/OrigamRadioBtn.vue +12 -0
  119. package/dist/src/components/Radio/OrigamRadioGroup.vue +20 -0
  120. package/dist/src/components/RatingField/OrigamRatingField.vue +20 -0
  121. package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +20 -0
  122. package/dist/src/components/Responsive/OrigamResponsive.vue +21 -1
  123. package/dist/src/components/Select/OrigamSelect.vue +20 -0
  124. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +12 -0
  125. package/dist/src/components/Sheet/OrigamSheet.vue +20 -0
  126. package/dist/src/components/Skeleton/OrigamSkeleton.vue +5 -1
  127. package/dist/src/components/Slide/OrigamSlideGroup.vue +20 -0
  128. package/dist/src/components/SliderField/OrigamSliderField.vue +20 -0
  129. package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +5 -1
  130. package/dist/src/components/Snackbar/OrigamSnackbar.vue +20 -0
  131. package/dist/src/components/Stepper/OrigamStepper.vue +21 -1
  132. package/dist/src/components/Switch/OrigamSwitch.vue +20 -0
  133. package/dist/src/components/Switch/OrigamSwitchTrack.vue +12 -0
  134. package/dist/src/components/SystemBar/OrigamSystemBar.vue +12 -0
  135. package/dist/src/components/Table/OrigamTable.vue +20 -0
  136. package/dist/src/components/Tabs/OrigamTabs.vue +4 -0
  137. package/dist/src/components/TextField/OrigamTextField.vue +20 -0
  138. package/dist/src/components/TextareaField/OrigamTextareaField.vue +20 -0
  139. package/dist/src/components/Title/OrigamTitle.vue +16 -0
  140. package/dist/src/components/Toolbar/OrigamToolbar.vue +20 -0
  141. package/dist/src/components/Video/OrigamVideo.vue +20 -0
  142. package/dist/src/components/Window/OrigamWindow.vue +20 -0
  143. package/dist/src/composables/Commons/border.composable.cjs +24 -16
  144. package/dist/src/composables/Commons/border.composable.d.ts +31 -10
  145. package/dist/src/composables/Commons/border.composable.js +21 -17
  146. package/dist/src/composables/Commons/margin.composable.cjs +7 -0
  147. package/dist/src/composables/Commons/margin.composable.d.ts +7 -1
  148. package/dist/src/composables/Commons/margin.composable.js +5 -1
  149. package/dist/src/composables/Commons/padding.composable.cjs +7 -0
  150. package/dist/src/composables/Commons/padding.composable.d.ts +15 -1
  151. package/dist/src/composables/Commons/padding.composable.js +5 -1
  152. package/dist/src/composables/Commons/rounded.composable.cjs +7 -0
  153. package/dist/src/composables/Commons/rounded.composable.d.ts +14 -1
  154. package/dist/src/composables/Commons/rounded.composable.js +5 -1
  155. package/dist/src/composables/Commons/stateEffect.composable.cjs +60 -0
  156. package/dist/src/composables/Commons/stateEffect.composable.js +60 -0
  157. package/dist/src/consts/Blockquote/blockquote.const.cjs +38 -1
  158. package/dist/src/consts/Blockquote/blockquote.const.d.ts +113 -0
  159. package/dist/src/consts/Blockquote/blockquote.const.js +37 -0
  160. package/dist/src/consts/Commons/border.const.cjs +19 -2
  161. package/dist/src/consts/Commons/border.const.d.ts +65 -4
  162. package/dist/src/consts/Commons/border.const.js +16 -2
  163. package/dist/src/consts/Commons/spacing.const.cjs +40 -1
  164. package/dist/src/consts/Commons/spacing.const.d.ts +68 -1
  165. package/dist/src/consts/Commons/spacing.const.js +19 -1
  166. package/dist/src/consts/Commons/variant-preset.const.cjs +2 -0
  167. package/dist/src/consts/Commons/variant-preset.const.d.ts +19 -8
  168. package/dist/src/consts/Commons/variant-preset.const.js +2 -0
  169. package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +59 -4
  170. package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +2 -2
  171. package/dist/src/interfaces/Bracket/bracket-surface.interface.d.ts +39 -0
  172. package/dist/src/interfaces/Bracket/bracket.interface.d.ts +25 -4
  173. package/dist/src/interfaces/Commons/border.interface.d.ts +123 -0
  174. package/dist/src/interfaces/Commons/margin.interface.d.ts +35 -1
  175. package/dist/src/interfaces/Commons/padding.interface.d.ts +41 -1
  176. package/dist/src/interfaces/Commons/rounded.interface.d.ts +47 -4
  177. package/dist/src/types/Bracket/bracket.type.d.ts +82 -0
  178. package/dist/src/types/Commons/anchor.type.d.ts +48 -0
  179. package/dist/src/types/Commons/variant-preset.type.d.ts +22 -4
  180. package/dist/src/types/tokens.type.d.ts +1 -1
  181. package/dist/src/utils/Bracket/bracket-surface.util.cjs +19 -0
  182. package/dist/src/utils/Bracket/bracket-surface.util.js +10 -0
  183. package/dist/src/utils/Commons/border.util.d.ts +16 -8
  184. package/package.json +1 -1
@@ -129,5 +129,24 @@ function bracketSurfaceVars(input) {
129
129
  const width = resolveBracketBorderWidth(input[widthProp]);
130
130
  if (width) vars[`--origam-bracket-match---border-${axis}-width`] = width;
131
131
  });
132
+ const BLOCK_EDGES = [{
133
+ edge: "block-start",
134
+ widthProp: "borderBlockStart",
135
+ colorProp: "borderBlockStartColor"
136
+ }, {
137
+ edge: "block-end",
138
+ widthProp: "borderBlockEnd",
139
+ colorProp: "borderBlockEndColor"
140
+ }];
141
+ BLOCK_EDGES.forEach(({
142
+ edge,
143
+ widthProp,
144
+ colorProp
145
+ }) => {
146
+ const width = resolveBracketBorderWidth(input[widthProp]);
147
+ if (width) vars[`--origam-bracket-match---border-${edge}-width`] = width;
148
+ const edgeColor = resolveBracketBorderColor(input[colorProp]);
149
+ if (edgeColor) vars[`--origam-bracket-match---border-${edge}-color`] = edgeColor;
150
+ });
132
151
  return vars;
133
152
  }
@@ -101,5 +101,15 @@ export function bracketSurfaceVars(input) {
101
101
  const width = resolveBracketBorderWidth(input[widthProp]);
102
102
  if (width) vars[`--origam-bracket-match---border-${axis}-width`] = width;
103
103
  });
104
+ const BLOCK_EDGES = [
105
+ { edge: "block-start", widthProp: "borderBlockStart", colorProp: "borderBlockStartColor" },
106
+ { edge: "block-end", widthProp: "borderBlockEnd", colorProp: "borderBlockEndColor" }
107
+ ];
108
+ BLOCK_EDGES.forEach(({ edge, widthProp, colorProp }) => {
109
+ const width = resolveBracketBorderWidth(input[widthProp]);
110
+ if (width) vars[`--origam-bracket-match---border-${edge}-width`] = width;
111
+ const edgeColor = resolveBracketBorderColor(input[colorProp]);
112
+ if (edgeColor) vars[`--origam-bracket-match---border-${edge}-color`] = edgeColor;
113
+ });
104
114
  return vars;
105
115
  }
@@ -1,4 +1,4 @@
1
- import type { TDirectionBoth } from '../../types/Commons/anchor.type';
1
+ import type { TDirectionBoth, TLogicalSide } from '../../types/Commons/anchor.type';
2
2
  import type { TBorderLogicalAxis } from '../../types/Commons/border.type';
3
3
  import type { TColor } from '../../types/Commons/color.type';
4
4
  /**
@@ -43,14 +43,22 @@ export declare function parseBorderPositionValue(value: string): {
43
43
  * physical too: no logical/physical mismatch for the consumer to
44
44
  * mentally translate) or a LOGICAL axis (`TBorderLogicalAxis` —
45
45
  * `borderBlock` / `borderInline`, which map onto the native CSS logical
46
- * properties `border-block-*` / `border-inline-*` verbatim). Both share
47
- * the exact same `border-{position}-{width,style,color}` template, so
48
- * one function covers both without duplicating the formatting logic
49
- * (unlike `formatBorderStylesVar`'s 2/4-value output for the global
50
- * `border` shorthand, which distributes ACROSS axes from a single value
51
- * list — a different concern).
46
+ * properties `border-block-*` / `border-inline-*` verbatim) or a LOGICAL
47
+ * SIDE (`TLogicalSide` — `borderInlineStart` / `borderInlineEnd` /
48
+ * `borderBlockStart` / `borderBlockEnd`, issue #1013, mapping onto
49
+ * `border-inline-start-*` and friends). All three share the exact same
50
+ * `border-{position}-{width,style,color}` template, so one function
51
+ * covers all of them without duplicating the formatting logic (unlike
52
+ * `formatBorderStylesVar`'s 2/4-value output for the global `border`
53
+ * shorthand, which distributes ACROSS axes from a single value list — a
54
+ * different concern).
55
+ *
56
+ * #1013 widened the `position` union by one member and changed NOTHING
57
+ * else here: `'inline-start'` interpolates into the same template and
58
+ * yields the correct native longhands. That is the whole reason the
59
+ * logical-per-side grid needed no new formatter.
52
60
  */
53
- export declare function formatBorderPositionStylesVar(position: TDirectionBoth | TBorderLogicalAxis, facets: {
61
+ export declare function formatBorderPositionStylesVar(position: TDirectionBoth | TBorderLogicalAxis | TLogicalSide, facets: {
54
62
  width?: string;
55
63
  style?: string;
56
64
  color?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.19.0",
3
+ "version": "2.21.0",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [