@capra/core 1.11.0 → 1.11.1

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/index.cjs CHANGED
@@ -1063,8 +1063,8 @@ Collapse.displayName = "Collapse";
1063
1063
  //#endregion
1064
1064
  //#region src/components/InputRow/InputRow.module.css
1065
1065
  var InputRow_module_default = {
1066
- "addon": "capra-InputRow-module-6vZh0q-addon",
1067
- "row": "capra-InputRow-module-6vZh0q-row"
1066
+ "addon": "capra-InputRow-module-hUHSXW-addon",
1067
+ "row": "capra-InputRow-module-hUHSXW-row"
1068
1068
  };
1069
1069
  //#endregion
1070
1070
  //#region src/components/InputRow/InputRow.tsx
@@ -3300,7 +3300,7 @@ const VerticalNavigationContext = react.createContext(null);
3300
3300
  * Can be a link (if href is provided) or a button.
3301
3301
  * Supports icons, active state, and 'subItem' variant for indentation.
3302
3302
  */
3303
- const Item = ({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant = "default", rightElement, ...props }) => {
3303
+ const Item = ({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant = "default", rightElement, DANGEROUS_DO_NOT_USE__after, ...props }) => {
3304
3304
  if (!react.useContext(VerticalNavigationContext)) throw new Error("VerticalNavigation.Item must be used within VerticalNavigation");
3305
3305
  const isLink = Boolean(href);
3306
3306
  const Component = as ?? (isLink ? "a" : "button");
@@ -3350,7 +3350,7 @@ const Item = ({ as, icon, label, isActive, href, FORCE__className, isDisabled, o
3350
3350
  variant: "body-sm-normal",
3351
3351
  color: "inherit",
3352
3352
  FORCE__className: VerticalNavigation_module_default.label
3353
- }, label), rightElement ? /* @__PURE__ */ react.createElement("span", { className: VerticalNavigation_module_default.right }, rightElement) : null));
3353
+ }, label), rightElement ? /* @__PURE__ */ react.createElement("span", { className: VerticalNavigation_module_default.right }, rightElement) : null), DANGEROUS_DO_NOT_USE__after);
3354
3354
  };
3355
3355
  /**
3356
3356
  * A toggle button to collapse/expand the navigation.
package/dist/index.d.cts CHANGED
@@ -1378,6 +1378,11 @@ type VerticalNavigationItemBaseProps<As extends React$2.ElementType> = Omit<Reac
1378
1378
  * Text label for the item.
1379
1379
  */
1380
1380
  label: string;
1381
+ /**
1382
+ * DO NOT USE! Temporary workaround. This prop **will be removed** in an upcoming minor version.
1383
+ * @deprecated
1384
+ */
1385
+ DANGEROUS_DO_NOT_USE__after?: React$2.ReactNode;
1381
1386
  };
1382
1387
  type VerticalNavigationDefaultItemProps<As extends React$2.ElementType> = VerticalNavigationItemBaseProps<As> & {
1383
1388
  /**
@@ -1404,7 +1409,7 @@ type VerticalNavigationItemProps<As extends React$2.ElementType> = VerticalNavig
1404
1409
  * Can be a link (if href is provided) or a button.
1405
1410
  * Supports icons, active state, and 'subItem' variant for indentation.
1406
1411
  */
1407
- declare const Item: <As extends React$2.ElementType>({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant, rightElement, ...props }: VerticalNavigationItemProps<As>) => React$2.JSX.Element;
1412
+ declare const Item: <As extends React$2.ElementType>({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant, rightElement, DANGEROUS_DO_NOT_USE__after, ...props }: VerticalNavigationItemProps<As>) => React$2.JSX.Element;
1408
1413
  type VerticalNavigationCollapseProps = React$2.ButtonHTMLAttributes<HTMLButtonElement> & StylingOverrideProps;
1409
1414
  /**
1410
1415
  * A toggle button to collapse/expand the navigation.
package/dist/index.d.mts CHANGED
@@ -1378,6 +1378,11 @@ type VerticalNavigationItemBaseProps<As extends React$2.ElementType> = Omit<Reac
1378
1378
  * Text label for the item.
1379
1379
  */
1380
1380
  label: string;
1381
+ /**
1382
+ * DO NOT USE! Temporary workaround. This prop **will be removed** in an upcoming minor version.
1383
+ * @deprecated
1384
+ */
1385
+ DANGEROUS_DO_NOT_USE__after?: React$2.ReactNode;
1381
1386
  };
1382
1387
  type VerticalNavigationDefaultItemProps<As extends React$2.ElementType> = VerticalNavigationItemBaseProps<As> & {
1383
1388
  /**
@@ -1404,7 +1409,7 @@ type VerticalNavigationItemProps<As extends React$2.ElementType> = VerticalNavig
1404
1409
  * Can be a link (if href is provided) or a button.
1405
1410
  * Supports icons, active state, and 'subItem' variant for indentation.
1406
1411
  */
1407
- declare const Item: <As extends React$2.ElementType>({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant, rightElement, ...props }: VerticalNavigationItemProps<As>) => React$2.JSX.Element;
1412
+ declare const Item: <As extends React$2.ElementType>({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant, rightElement, DANGEROUS_DO_NOT_USE__after, ...props }: VerticalNavigationItemProps<As>) => React$2.JSX.Element;
1408
1413
  type VerticalNavigationCollapseProps = React$2.ButtonHTMLAttributes<HTMLButtonElement> & StylingOverrideProps;
1409
1414
  /**
1410
1415
  * A toggle button to collapse/expand the navigation.
package/dist/index.mjs CHANGED
@@ -1040,8 +1040,8 @@ Collapse.displayName = "Collapse";
1040
1040
  //#endregion
1041
1041
  //#region src/components/InputRow/InputRow.module.css
1042
1042
  var InputRow_module_default = {
1043
- "addon": "capra-InputRow-module-6vZh0q-addon",
1044
- "row": "capra-InputRow-module-6vZh0q-row"
1043
+ "addon": "capra-InputRow-module-hUHSXW-addon",
1044
+ "row": "capra-InputRow-module-hUHSXW-row"
1045
1045
  };
1046
1046
  //#endregion
1047
1047
  //#region src/components/InputRow/InputRow.tsx
@@ -3277,7 +3277,7 @@ const VerticalNavigationContext = React$1.createContext(null);
3277
3277
  * Can be a link (if href is provided) or a button.
3278
3278
  * Supports icons, active state, and 'subItem' variant for indentation.
3279
3279
  */
3280
- const Item = ({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant = "default", rightElement, ...props }) => {
3280
+ const Item = ({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant = "default", rightElement, DANGEROUS_DO_NOT_USE__after, ...props }) => {
3281
3281
  if (!React$1.useContext(VerticalNavigationContext)) throw new Error("VerticalNavigation.Item must be used within VerticalNavigation");
3282
3282
  const isLink = Boolean(href);
3283
3283
  const Component = as ?? (isLink ? "a" : "button");
@@ -3327,7 +3327,7 @@ const Item = ({ as, icon, label, isActive, href, FORCE__className, isDisabled, o
3327
3327
  variant: "body-sm-normal",
3328
3328
  color: "inherit",
3329
3329
  FORCE__className: VerticalNavigation_module_default.label
3330
- }, label), rightElement ? /* @__PURE__ */ React$1.createElement("span", { className: VerticalNavigation_module_default.right }, rightElement) : null));
3330
+ }, label), rightElement ? /* @__PURE__ */ React$1.createElement("span", { className: VerticalNavigation_module_default.right }, rightElement) : null), DANGEROUS_DO_NOT_USE__after);
3331
3331
  };
3332
3332
  /**
3333
3333
  * A toggle button to collapse/expand the navigation.
package/dist/style.css CHANGED
@@ -1564,7 +1564,7 @@ input:disabled + .capra-Radio-module-ZI7rzq-inner:after {
1564
1564
  transition: none;
1565
1565
  }
1566
1566
  }
1567
- .capra-InputRow-module-6vZh0q-row {
1567
+ .capra-InputRow-module-hUHSXW-row {
1568
1568
  flex-direction: row;
1569
1569
  align-items: stretch;
1570
1570
  width: 100%;
@@ -1584,7 +1584,7 @@ input:disabled + .capra-Radio-module-ZI7rzq-inner:after {
1584
1584
  flex: none;
1585
1585
  }
1586
1586
 
1587
- & > [data-capra-input-row-addon]:not(:first-child), & > [data-capra-text-input]:not(:first-child), & > [data-capra-field-root]:not(:first-child) :where([data-capra-text-input]), & > .ant-select:not(:first-child) {
1587
+ & > [data-capra-input-row-addon]:not(:first-child), & > [data-capra-text-input]:not(:first-child), & > [data-capra-field-root]:not(:first-child) :where([data-capra-text-input]) {
1588
1588
  margin-inline-start: -1px;
1589
1589
  }
1590
1590
 
@@ -1592,10 +1592,6 @@ input:disabled + .capra-Radio-module-ZI7rzq-inner:after {
1592
1592
  z-index: 1;
1593
1593
  }
1594
1594
 
1595
- & > .ant-select-focused {
1596
- z-index: 1;
1597
- }
1598
-
1599
1595
  & > :not(:only-child):not(:last-child) {
1600
1596
  border-top-right-radius: 0;
1601
1597
  border-bottom-right-radius: 0;
@@ -1605,29 +1601,9 @@ input:disabled + .capra-Radio-module-ZI7rzq-inner:after {
1605
1601
  border-top-left-radius: 0;
1606
1602
  border-bottom-left-radius: 0;
1607
1603
  }
1608
-
1609
- & > .ant-select:not(:only-child):not(:last-child) .ant-select-selection, & > .ant-select:not(:only-child):not(:last-child) .ant-select-selector {
1610
- border-top-right-radius: 0;
1611
- border-bottom-right-radius: 0;
1612
- }
1613
-
1614
- & > .ant-select:not(:only-child):not(:first-child) .ant-select-selection, & > .ant-select:not(:only-child):not(:first-child) .ant-select-selector {
1615
- border-top-left-radius: 0;
1616
- border-bottom-left-radius: 0;
1617
- }
1618
-
1619
- & > .ant-select:first-child:not(:only-child) .ant-select-selection, & > .ant-select:first-child:not(:only-child) .ant-select-selector {
1620
- border-top-left-radius: var(--cds2-radius-md);
1621
- border-bottom-left-radius: var(--cds2-radius-md);
1622
- }
1623
-
1624
- & > .ant-select:last-child:not(:only-child) .ant-select-selection, & > .ant-select:last-child:not(:only-child) .ant-select-selector {
1625
- border-top-right-radius: var(--cds2-radius-md);
1626
- border-bottom-right-radius: var(--cds2-radius-md);
1627
- }
1628
1604
  }
1629
1605
 
1630
- .capra-InputRow-module-6vZh0q-addon {
1606
+ .capra-InputRow-module-hUHSXW-addon {
1631
1607
  box-sizing: border-box;
1632
1608
  align-items: center;
1633
1609
  gap: var(--cds2-spacing-md);
@@ -1650,17 +1626,17 @@ input:disabled + .capra-Radio-module-ZI7rzq-inner:after {
1650
1626
  }
1651
1627
  }
1652
1628
 
1653
- .capra-InputRow-module-6vZh0q-row > [data-capra-input-row-addon]:first-child:not(:only-child) {
1629
+ .capra-InputRow-module-hUHSXW-row > [data-capra-input-row-addon]:first-child:not(:only-child) {
1654
1630
  border-top-left-radius: var(--cds2-radius-md);
1655
1631
  border-bottom-left-radius: var(--cds2-radius-md);
1656
1632
  }
1657
1633
 
1658
- .capra-InputRow-module-6vZh0q-row > [data-capra-input-row-addon]:last-child:not(:only-child) {
1634
+ .capra-InputRow-module-hUHSXW-row > [data-capra-input-row-addon]:last-child:not(:only-child) {
1659
1635
  border-top-right-radius: var(--cds2-radius-md);
1660
1636
  border-bottom-right-radius: var(--cds2-radius-md);
1661
1637
  }
1662
1638
 
1663
- .capra-InputRow-module-6vZh0q-row > [data-capra-input-row-addon]:only-child {
1639
+ .capra-InputRow-module-hUHSXW-row > [data-capra-input-row-addon]:only-child {
1664
1640
  border-radius: var(--cds2-radius-md);
1665
1641
  }
1666
1642
  .capra-NumberField-module-crO5za-withStepper {
@@ -1,5 +1,11 @@
1
1
  # History/Changelogs/@capra-core
2
2
 
3
+ ### 1.11.1
4
+
5
+ #### Patch Changes
6
+
7
+ * [d5f21be](https://bitbucket.org/cribl/capra-ui/commits/d5f21be): Add temporary prop to `VerticalNavigation`
8
+
3
9
  ### 1.11.0
4
10
 
5
11
  #### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capra/core",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "type": "module",
6
6
  "description": "Core React components for the Capra design system",
@@ -43,8 +43,8 @@
43
43
  "antd": "4.24.16",
44
44
  "storybook": "^10.4.6",
45
45
  "tsdown": "^0.22.7",
46
- "@capra/theme": "^1.4.0",
47
46
  "@private/building": "^0.1.0",
47
+ "@capra/theme": "^1.4.0",
48
48
  "@private/linting": "^0.0.1",
49
49
  "@private/stories": "^0.0.0",
50
50
  "@private/testing": "^0.0.7"