@raystack/apsara 0.28.0 → 0.29.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/container/container.cjs +3 -0
- package/dist/container/container.cjs.map +1 -1
- package/dist/container/container.d.ts +3 -0
- package/dist/container/container.d.ts.map +1 -1
- package/dist/container/container.js +3 -0
- package/dist/container/container.js.map +1 -1
- package/dist/image/image.cjs +6 -0
- package/dist/image/image.cjs.map +1 -1
- package/dist/image/image.d.ts +6 -0
- package/dist/image/image.d.ts.map +1 -1
- package/dist/image/image.js +6 -0
- package/dist/image/image.js.map +1 -1
- package/dist/link/link.cjs +3 -0
- package/dist/link/link.cjs.map +1 -1
- package/dist/link/link.d.ts +3 -0
- package/dist/link/link.d.ts.map +1 -1
- package/dist/link/link.js +3 -0
- package/dist/link/link.js.map +1 -1
- package/dist/separator/separator.cjs +3 -0
- package/dist/separator/separator.cjs.map +1 -1
- package/dist/separator/separator.d.ts +3 -0
- package/dist/separator/separator.d.ts.map +1 -1
- package/dist/separator/separator.js +3 -0
- package/dist/separator/separator.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/table/DataTableFilterChips.cjs.map +1 -1
- package/dist/table/DataTableFilterChips.js.map +1 -1
- package/dist/toggle-group/togglegroup.cjs +3 -3
- package/dist/toggle-group/togglegroup.cjs.map +1 -1
- package/dist/toggle-group/togglegroup.d.ts +5 -5
- package/dist/toggle-group/togglegroup.js +3 -3
- package/dist/toggle-group/togglegroup.js.map +1 -1
- package/dist/v1/components/box/box.cjs +3 -3
- package/dist/v1/components/box/box.cjs.map +1 -1
- package/dist/v1/components/box/box.d.ts +7 -2
- package/dist/v1/components/box/box.d.ts.map +1 -1
- package/dist/v1/components/box/box.js +3 -3
- package/dist/v1/components/box/box.js.map +1 -1
- package/dist/v1/components/calendar/calendar.cjs +6 -6
- package/dist/v1/components/calendar/calendar.cjs.map +1 -1
- package/dist/v1/components/calendar/calendar.d.ts.map +1 -1
- package/dist/v1/components/calendar/calendar.js +6 -6
- package/dist/v1/components/calendar/calendar.js.map +1 -1
- package/dist/v1/components/calendar/calendar.module.css.cjs +1 -1
- package/dist/v1/components/calendar/calendar.module.css.js +1 -1
- package/dist/v1/components/calendar/date-picker.cjs +6 -6
- package/dist/v1/components/calendar/date-picker.cjs.map +1 -1
- package/dist/v1/components/calendar/date-picker.d.ts +3 -2
- package/dist/v1/components/calendar/date-picker.d.ts.map +1 -1
- package/dist/v1/components/calendar/date-picker.js +6 -6
- package/dist/v1/components/calendar/date-picker.js.map +1 -1
- package/dist/v1/components/calendar/range-picker.cjs +6 -6
- package/dist/v1/components/calendar/range-picker.cjs.map +1 -1
- package/dist/v1/components/calendar/range-picker.d.ts +3 -2
- package/dist/v1/components/calendar/range-picker.d.ts.map +1 -1
- package/dist/v1/components/calendar/range-picker.js +6 -6
- package/dist/v1/components/calendar/range-picker.js.map +1 -1
- package/dist/v1/components/callout/callout.cjs +1 -1
- package/dist/v1/components/callout/callout.cjs.map +1 -1
- package/dist/v1/components/callout/callout.d.ts +1 -1
- package/dist/v1/components/callout/callout.d.ts.map +1 -1
- package/dist/v1/components/callout/callout.js +1 -1
- package/dist/v1/components/callout/callout.js.map +1 -1
- package/dist/v1/components/container/container.cjs +31 -0
- package/dist/v1/components/container/container.cjs.map +1 -0
- package/dist/v1/components/container/container.d.ts +13 -0
- package/dist/v1/components/container/container.d.ts.map +1 -0
- package/dist/v1/components/container/container.js +29 -0
- package/dist/v1/components/container/container.js.map +1 -0
- package/dist/v1/components/container/container.module.css.cjs +8 -0
- package/dist/v1/components/container/container.module.css.cjs.map +1 -0
- package/dist/v1/components/container/container.module.css.js +4 -0
- package/dist/v1/components/container/container.module.css.js.map +1 -0
- package/dist/v1/components/container/index.d.ts +2 -0
- package/dist/v1/components/container/index.d.ts.map +1 -0
- package/dist/v1/components/filter-chip/filter-chip.cjs +53 -0
- package/dist/v1/components/filter-chip/filter-chip.cjs.map +1 -0
- package/dist/v1/components/filter-chip/filter-chip.d.ts +24 -0
- package/dist/v1/components/filter-chip/filter-chip.d.ts.map +1 -0
- package/dist/v1/components/filter-chip/filter-chip.js +51 -0
- package/dist/v1/components/filter-chip/filter-chip.js.map +1 -0
- package/dist/v1/components/filter-chip/filter-chip.module.css.cjs +8 -0
- package/dist/v1/components/filter-chip/filter-chip.module.css.cjs.map +1 -0
- package/dist/v1/components/filter-chip/filter-chip.module.css.js +4 -0
- package/dist/v1/components/filter-chip/filter-chip.module.css.js.map +1 -0
- package/dist/v1/components/filter-chip/index.d.ts +2 -0
- package/dist/v1/components/filter-chip/index.d.ts.map +1 -0
- package/dist/v1/components/image/image.cjs +43 -0
- package/dist/v1/components/image/image.cjs.map +1 -0
- package/dist/v1/components/image/image.d.ts +17 -0
- package/dist/v1/components/image/image.d.ts.map +1 -0
- package/dist/v1/components/image/image.js +41 -0
- package/dist/v1/components/image/image.js.map +1 -0
- package/dist/v1/components/image/image.module.css.cjs +8 -0
- package/dist/v1/components/image/image.module.css.cjs.map +1 -0
- package/dist/v1/components/image/image.module.css.js +4 -0
- package/dist/v1/components/image/image.module.css.js.map +1 -0
- package/dist/v1/components/image/index.d.ts +2 -0
- package/dist/v1/components/image/index.d.ts.map +1 -0
- package/dist/v1/components/input-field/input-field.cjs.map +1 -1
- package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
- package/dist/v1/components/input-field/input-field.js.map +1 -1
- package/dist/v1/components/link/index.d.ts +2 -0
- package/dist/v1/components/link/index.d.ts.map +1 -0
- package/dist/v1/components/link/link.cjs +74 -0
- package/dist/v1/components/link/link.cjs.map +1 -0
- package/dist/v1/components/link/link.d.ts +18 -0
- package/dist/v1/components/link/link.d.ts.map +1 -0
- package/dist/v1/components/link/link.js +72 -0
- package/dist/v1/components/link/link.js.map +1 -0
- package/dist/v1/components/link/link.module.css.cjs +8 -0
- package/dist/v1/components/link/link.module.css.cjs.map +1 -0
- package/dist/v1/components/link/link.module.css.js +4 -0
- package/dist/v1/components/link/link.module.css.js.map +1 -0
- package/dist/v1/components/list/index.d.ts +2 -0
- package/dist/v1/components/list/index.d.ts.map +1 -0
- package/dist/v1/components/list/list.cjs +42 -0
- package/dist/v1/components/list/list.cjs.map +1 -0
- package/dist/v1/components/list/list.d.ts +44 -0
- package/dist/v1/components/list/list.d.ts.map +1 -0
- package/dist/v1/components/list/list.js +40 -0
- package/dist/v1/components/list/list.js.map +1 -0
- package/dist/v1/components/list/list.module.css.cjs +8 -0
- package/dist/v1/components/list/list.module.css.cjs.map +1 -0
- package/dist/v1/components/list/list.module.css.js +4 -0
- package/dist/v1/components/list/list.module.css.js.map +1 -0
- package/dist/v1/components/popover/popover.cjs +1 -1
- package/dist/v1/components/popover/popover.cjs.map +1 -1
- package/dist/v1/components/popover/popover.d.ts.map +1 -1
- package/dist/v1/components/popover/popover.js +1 -1
- package/dist/v1/components/popover/popover.js.map +1 -1
- package/dist/v1/components/search/search.cjs.map +1 -1
- package/dist/v1/components/search/search.d.ts.map +1 -1
- package/dist/v1/components/search/search.js.map +1 -1
- package/dist/v1/components/select/select.cjs +6 -1
- package/dist/v1/components/select/select.cjs.map +1 -1
- package/dist/v1/components/select/select.d.ts +1 -0
- package/dist/v1/components/select/select.d.ts.map +1 -1
- package/dist/v1/components/select/select.js +6 -1
- package/dist/v1/components/select/select.js.map +1 -1
- package/dist/v1/components/select/select.module.css.cjs +1 -1
- package/dist/v1/components/select/select.module.css.js +1 -1
- package/dist/v1/components/separator/index.d.ts +2 -0
- package/dist/v1/components/separator/index.d.ts.map +1 -0
- package/dist/v1/components/separator/separator.cjs +32 -0
- package/dist/v1/components/separator/separator.cjs.map +1 -0
- package/dist/v1/components/separator/separator.d.ts +13 -0
- package/dist/v1/components/separator/separator.d.ts.map +1 -0
- package/dist/v1/components/separator/separator.js +30 -0
- package/dist/v1/components/separator/separator.js.map +1 -0
- package/dist/v1/components/separator/separator.module.css.cjs +8 -0
- package/dist/v1/components/separator/separator.module.css.cjs.map +1 -0
- package/dist/v1/components/separator/separator.module.css.js +4 -0
- package/dist/v1/components/separator/separator.module.css.js.map +1 -0
- package/dist/v1/components/sidepanel/sidepanel.cjs.map +1 -1
- package/dist/v1/components/sidepanel/sidepanel.d.ts +1 -1
- package/dist/v1/components/sidepanel/sidepanel.d.ts.map +1 -1
- package/dist/v1/components/sidepanel/sidepanel.js.map +1 -1
- package/dist/v1/components/slider/slider.cjs +2 -2
- package/dist/v1/components/slider/slider.cjs.map +1 -1
- package/dist/v1/components/slider/slider.d.ts +2 -2
- package/dist/v1/components/slider/slider.d.ts.map +1 -1
- package/dist/v1/components/slider/slider.js +2 -2
- package/dist/v1/components/slider/slider.js.map +1 -1
- package/dist/v1/components/text/text.cjs.map +1 -1
- package/dist/v1/components/text/text.d.ts.map +1 -1
- package/dist/v1/components/text/text.js +33 -33
- package/dist/v1/components/text/text.js.map +1 -1
- package/dist/v1/components/text/text.module.css.cjs +2 -2
- package/dist/v1/components/text/text.module.css.js +2 -2
- package/dist/v1/components/text-area/text-area.cjs +1 -1
- package/dist/v1/components/text-area/text-area.cjs.map +1 -1
- package/dist/v1/components/text-area/text-area.d.ts +1 -1
- package/dist/v1/components/text-area/text-area.d.ts.map +1 -1
- package/dist/v1/components/text-area/text-area.js +1 -1
- package/dist/v1/components/text-area/text-area.js.map +1 -1
- package/dist/v1/components/textfield/textfield.cjs.map +1 -1
- package/dist/v1/components/textfield/textfield.d.ts.map +1 -1
- package/dist/v1/components/textfield/textfield.js.map +1 -1
- package/dist/v1/components/tooltip/tooltip.cjs.map +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/v1/components/tooltip/tooltip.js.map +1 -1
- package/dist/v1/index.cjs +20 -8
- package/dist/v1/index.cjs.map +1 -1
- package/dist/v1/index.d.ts +10 -4
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +10 -4
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +23 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +23 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.cjs +51 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.js +48 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-separator@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.js.map +1 -0
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _extends = require('../../../../../@babel_runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/extends.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._44pjkdrkjq3hxuh62jsxoggm4e/node_modules/@radix-ui/react-primitive/dist/index.cjs');
|
|
6
|
+
|
|
7
|
+
const $89eedd556c436f6a$var$DEFAULT_ORIENTATION = 'horizontal';
|
|
8
|
+
const $89eedd556c436f6a$var$ORIENTATIONS = [
|
|
9
|
+
'horizontal',
|
|
10
|
+
'vertical'
|
|
11
|
+
];
|
|
12
|
+
const $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13
|
+
const { decorative: decorative , orientation: orientationProp = $89eedd556c436f6a$var$DEFAULT_ORIENTATION , ...domProps } = props;
|
|
14
|
+
const orientation = $89eedd556c436f6a$var$isValidOrientation(orientationProp) ? orientationProp : $89eedd556c436f6a$var$DEFAULT_ORIENTATION; // `aria-orientation` defaults to `horizontal` so we only need it if `orientation` is vertical
|
|
15
|
+
const ariaOrientation = orientation === 'vertical' ? orientation : undefined;
|
|
16
|
+
const semanticProps = decorative ? {
|
|
17
|
+
role: 'none'
|
|
18
|
+
} : {
|
|
19
|
+
'aria-orientation': ariaOrientation,
|
|
20
|
+
role: 'separator'
|
|
21
|
+
};
|
|
22
|
+
return /*#__PURE__*/ React.createElement(index.Primitive.div, _extends.default({
|
|
23
|
+
"data-orientation": orientation
|
|
24
|
+
}, semanticProps, domProps, {
|
|
25
|
+
ref: forwardedRef
|
|
26
|
+
}));
|
|
27
|
+
});
|
|
28
|
+
$89eedd556c436f6a$export$1ff3c3f08ae963c0.propTypes = {
|
|
29
|
+
orientation (props, propName, componentName) {
|
|
30
|
+
const propValue = props[propName];
|
|
31
|
+
const strVal = String(propValue);
|
|
32
|
+
if (propValue && !$89eedd556c436f6a$var$isValidOrientation(propValue)) return new Error($89eedd556c436f6a$var$getInvalidOrientationError(strVal, componentName));
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
/* -----------------------------------------------------------------------------------------------*/ // Split this out for clearer readability of the error message.
|
|
37
|
+
function $89eedd556c436f6a$var$getInvalidOrientationError(value, componentName) {
|
|
38
|
+
return `Invalid prop \`orientation\` of value \`${value}\` supplied to \`${componentName}\`, expected one of:
|
|
39
|
+
- horizontal
|
|
40
|
+
- vertical
|
|
41
|
+
|
|
42
|
+
Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
43
|
+
}
|
|
44
|
+
function $89eedd556c436f6a$var$isValidOrientation(orientation) {
|
|
45
|
+
return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);
|
|
46
|
+
}
|
|
47
|
+
const $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;
|
|
48
|
+
|
|
49
|
+
exports.Root = $89eedd556c436f6a$export$be92b6f5f03c0fe9;
|
|
50
|
+
exports.Separator = $89eedd556c436f6a$export$1ff3c3f08ae963c0;
|
|
51
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-separator@1.0.3_@types+react-dom@18.0.11_@types+react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.mjs"],"sourcesContent":["import $5WXm8$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $5WXm8$forwardRef, createElement as $5WXm8$createElement} from \"react\";\nimport {Primitive as $5WXm8$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Separator\n * -----------------------------------------------------------------------------------------------*/ const $89eedd556c436f6a$var$NAME = 'Separator';\nconst $89eedd556c436f6a$var$DEFAULT_ORIENTATION = 'horizontal';\nconst $89eedd556c436f6a$var$ORIENTATIONS = [\n 'horizontal',\n 'vertical'\n];\nconst $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/ $5WXm8$forwardRef((props, forwardedRef)=>{\n const { decorative: decorative , orientation: orientationProp = $89eedd556c436f6a$var$DEFAULT_ORIENTATION , ...domProps } = props;\n const orientation = $89eedd556c436f6a$var$isValidOrientation(orientationProp) ? orientationProp : $89eedd556c436f6a$var$DEFAULT_ORIENTATION; // `aria-orientation` defaults to `horizontal` so we only need it if `orientation` is vertical\n const ariaOrientation = orientation === 'vertical' ? orientation : undefined;\n const semanticProps = decorative ? {\n role: 'none'\n } : {\n 'aria-orientation': ariaOrientation,\n role: 'separator'\n };\n return /*#__PURE__*/ $5WXm8$createElement($5WXm8$Primitive.div, $5WXm8$babelruntimehelpersesmextends({\n \"data-orientation\": orientation\n }, semanticProps, domProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($89eedd556c436f6a$export$1ff3c3f08ae963c0, {\n displayName: $89eedd556c436f6a$var$NAME\n});\n$89eedd556c436f6a$export$1ff3c3f08ae963c0.propTypes = {\n orientation (props, propName, componentName) {\n const propValue = props[propName];\n const strVal = String(propValue);\n if (propValue && !$89eedd556c436f6a$var$isValidOrientation(propValue)) return new Error($89eedd556c436f6a$var$getInvalidOrientationError(strVal, componentName));\n return null;\n }\n};\n/* -----------------------------------------------------------------------------------------------*/ // Split this out for clearer readability of the error message.\nfunction $89eedd556c436f6a$var$getInvalidOrientationError(value, componentName) {\n return `Invalid prop \\`orientation\\` of value \\`${value}\\` supplied to \\`${componentName}\\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \\`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\\`.`;\n}\nfunction $89eedd556c436f6a$var$isValidOrientation(orientation) {\n return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);\n}\nconst $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;\n\n\n\n\nexport {$89eedd556c436f6a$export$1ff3c3f08ae963c0 as Separator, $89eedd556c436f6a$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index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AI,SAAS,IAAI,CAAC,wCAAwC,CAAC,SAAS,CAAC,EAAE,OAAO,IAAI,KAAK,CAAC,gDAAgD,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;AACzK,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK;AACL,CAAC,CAAC;AACF;AACA,SAAS,gDAAgD,CAAC,KAAK,EAAE,aAAa,EAAE;AAChF,IAAI,OAAO,CAAC,wCAAwC,EAAE,KAAK,CAAC,iBAAiB,EAAE,aAAa,CAAC;AAC7F;AACA;AACA;AACA,gBAAgB,EAAE,yCAAyC,CAAC,GAAG,CAAC,CAAC;AACjE,CAAC;AACD,SAAS,wCAAwC,CAAC,WAAW,EAAE;AAC/D,IAAI,OAAO,kCAAkC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACpE,CAAC;AACI,MAAC,yCAAyC,GAAG;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _extends from '../../../../../@babel_runtime@7.24.8/node_modules/@babel/runtime/helpers/esm/extends.js';
|
|
2
|
+
import { forwardRef, createElement } from 'react';
|
|
3
|
+
import { Primitive as $8927f6f2acc4f386$export$250ffa63cdc0d034 } from '../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3._44pjkdrkjq3hxuh62jsxoggm4e/node_modules/@radix-ui/react-primitive/dist/index.js';
|
|
4
|
+
|
|
5
|
+
const $89eedd556c436f6a$var$DEFAULT_ORIENTATION = 'horizontal';
|
|
6
|
+
const $89eedd556c436f6a$var$ORIENTATIONS = [
|
|
7
|
+
'horizontal',
|
|
8
|
+
'vertical'
|
|
9
|
+
];
|
|
10
|
+
const $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
11
|
+
const { decorative: decorative , orientation: orientationProp = $89eedd556c436f6a$var$DEFAULT_ORIENTATION , ...domProps } = props;
|
|
12
|
+
const orientation = $89eedd556c436f6a$var$isValidOrientation(orientationProp) ? orientationProp : $89eedd556c436f6a$var$DEFAULT_ORIENTATION; // `aria-orientation` defaults to `horizontal` so we only need it if `orientation` is vertical
|
|
13
|
+
const ariaOrientation = orientation === 'vertical' ? orientation : undefined;
|
|
14
|
+
const semanticProps = decorative ? {
|
|
15
|
+
role: 'none'
|
|
16
|
+
} : {
|
|
17
|
+
'aria-orientation': ariaOrientation,
|
|
18
|
+
role: 'separator'
|
|
19
|
+
};
|
|
20
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
21
|
+
"data-orientation": orientation
|
|
22
|
+
}, semanticProps, domProps, {
|
|
23
|
+
ref: forwardedRef
|
|
24
|
+
}));
|
|
25
|
+
});
|
|
26
|
+
$89eedd556c436f6a$export$1ff3c3f08ae963c0.propTypes = {
|
|
27
|
+
orientation (props, propName, componentName) {
|
|
28
|
+
const propValue = props[propName];
|
|
29
|
+
const strVal = String(propValue);
|
|
30
|
+
if (propValue && !$89eedd556c436f6a$var$isValidOrientation(propValue)) return new Error($89eedd556c436f6a$var$getInvalidOrientationError(strVal, componentName));
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
/* -----------------------------------------------------------------------------------------------*/ // Split this out for clearer readability of the error message.
|
|
35
|
+
function $89eedd556c436f6a$var$getInvalidOrientationError(value, componentName) {
|
|
36
|
+
return `Invalid prop \`orientation\` of value \`${value}\` supplied to \`${componentName}\`, expected one of:
|
|
37
|
+
- horizontal
|
|
38
|
+
- vertical
|
|
39
|
+
|
|
40
|
+
Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
41
|
+
}
|
|
42
|
+
function $89eedd556c436f6a$var$isValidOrientation(orientation) {
|
|
43
|
+
return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);
|
|
44
|
+
}
|
|
45
|
+
const $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;
|
|
46
|
+
|
|
47
|
+
export { $89eedd556c436f6a$export$be92b6f5f03c0fe9 as Root, $89eedd556c436f6a$export$1ff3c3f08ae963c0 as Separator };
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-separator@1.0.3_@types+react-dom@18.0.11_@types+react@18.2.12_react-dom@18.3._na4co26slzimf5qojej32hgyjm/node_modules/@radix-ui/react-separator/dist/index.mjs"],"sourcesContent":["import $5WXm8$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $5WXm8$forwardRef, createElement as $5WXm8$createElement} from \"react\";\nimport {Primitive as $5WXm8$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Separator\n * -----------------------------------------------------------------------------------------------*/ const $89eedd556c436f6a$var$NAME = 'Separator';\nconst $89eedd556c436f6a$var$DEFAULT_ORIENTATION = 'horizontal';\nconst $89eedd556c436f6a$var$ORIENTATIONS = [\n 'horizontal',\n 'vertical'\n];\nconst $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/ $5WXm8$forwardRef((props, forwardedRef)=>{\n const { decorative: decorative , orientation: orientationProp = $89eedd556c436f6a$var$DEFAULT_ORIENTATION , ...domProps } = props;\n const orientation = $89eedd556c436f6a$var$isValidOrientation(orientationProp) ? orientationProp : $89eedd556c436f6a$var$DEFAULT_ORIENTATION; // `aria-orientation` defaults to `horizontal` so we only need it if `orientation` is vertical\n const ariaOrientation = orientation === 'vertical' ? orientation : undefined;\n const semanticProps = decorative ? {\n role: 'none'\n } : {\n 'aria-orientation': ariaOrientation,\n role: 'separator'\n };\n return /*#__PURE__*/ $5WXm8$createElement($5WXm8$Primitive.div, $5WXm8$babelruntimehelpersesmextends({\n \"data-orientation\": orientation\n }, semanticProps, domProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($89eedd556c436f6a$export$1ff3c3f08ae963c0, {\n displayName: $89eedd556c436f6a$var$NAME\n});\n$89eedd556c436f6a$export$1ff3c3f08ae963c0.propTypes = {\n orientation (props, propName, componentName) {\n const propValue = props[propName];\n const strVal = String(propValue);\n if (propValue && !$89eedd556c436f6a$var$isValidOrientation(propValue)) return new Error($89eedd556c436f6a$var$getInvalidOrientationError(strVal, componentName));\n return null;\n }\n};\n/* -----------------------------------------------------------------------------------------------*/ // Split this out for clearer readability of the error message.\nfunction $89eedd556c436f6a$var$getInvalidOrientationError(value, componentName) {\n return `Invalid prop \\`orientation\\` of value \\`${value}\\` supplied to \\`${componentName}\\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \\`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\\`.`;\n}\nfunction $89eedd556c436f6a$var$isValidOrientation(orientation) {\n return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);\n}\nconst $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;\n\n\n\n\nexport {$89eedd556c436f6a$export$1ff3c3f08ae963c0 as Separator, $89eedd556c436f6a$export$be92b6f5f03c0fe9 as Root};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$5WXm8$forwardRef","$5WXm8$createElement","$5WXm8$Primitive","$5WXm8$babelruntimehelpersesmextends"],"mappings":";;;;AAUA,MAAM,yCAAyC,GAAG,YAAY,CAAC;AAC/D,MAAM,kCAAkC,GAAG;AAC3C,IAAI,YAAY;AAChB,IAAI,UAAU;AACd,CAAC,CAAC;AACG,MAAC,yCAAyC,iBAAiBA,UAAiB,CAAC,CAAC,KAAK,EAAE,YAAY,GAAG;AACzG,IAAI,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,WAAW,EAAE,eAAe,GAAG,yCAAyC,GAAG,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;A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